rtconfig.h 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
  4. /* RT-Thread Kernel */
  5. #define RT_NAME_MAX 16
  6. #define RT_CPUS_NR 1
  7. #define RT_ALIGN_SIZE 8
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 1000
  11. #define RT_USING_OVERFLOW_CHECK
  12. #define RT_USING_HOOK
  13. #define RT_HOOK_USING_FUNC_PTR
  14. #define RT_USING_IDLE_HOOK
  15. #define RT_IDLE_HOOK_LIST_SIZE 4
  16. #define IDLE_THREAD_STACK_SIZE 1024
  17. /* kservice optimization */
  18. /* end of kservice optimization */
  19. #define RT_USING_DEBUG
  20. #define RT_DEBUGING_COLOR
  21. #define RT_DEBUGING_CONTEXT
  22. /* Inter-Thread communication */
  23. #define RT_USING_SEMAPHORE
  24. #define RT_USING_MUTEX
  25. #define RT_USING_EVENT
  26. #define RT_USING_MAILBOX
  27. #define RT_USING_MESSAGEQUEUE
  28. /* end of Inter-Thread communication */
  29. /* Memory Management */
  30. #define RT_USING_MEMPOOL
  31. #define RT_USING_SMALL_MEM
  32. #define RT_USING_SMALL_MEM_AS_HEAP
  33. #define RT_USING_HEAP
  34. /* end of Memory Management */
  35. #define RT_USING_DEVICE
  36. #define RT_USING_CONSOLE
  37. #define RT_CONSOLEBUF_SIZE 512
  38. #define RT_CONSOLE_DEVICE_NAME "uart0"
  39. #define RT_VER_NUM 0x50100
  40. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  41. /* end of RT-Thread Kernel */
  42. #define RT_USING_HW_ATOMIC
  43. #define ARCH_ARM
  44. #define ARCH_ARM_CORTEX_R
  45. #define ARCH_ARM_CORTEX_R52
  46. /* RT-Thread Components */
  47. #define RT_USING_COMPONENTS_INIT
  48. #define RT_USING_USER_MAIN
  49. #define RT_MAIN_THREAD_STACK_SIZE 2048
  50. #define RT_MAIN_THREAD_PRIORITY 10
  51. #define RT_USING_MSH
  52. #define RT_USING_FINSH
  53. #define FINSH_USING_MSH
  54. #define FINSH_THREAD_NAME "tshell"
  55. #define FINSH_THREAD_PRIORITY 20
  56. #define FINSH_THREAD_STACK_SIZE 4096
  57. #define FINSH_USING_HISTORY
  58. #define FINSH_HISTORY_LINES 5
  59. #define FINSH_USING_SYMTAB
  60. #define FINSH_CMD_SIZE 80
  61. #define MSH_USING_BUILT_IN_COMMANDS
  62. #define FINSH_USING_DESCRIPTION
  63. #define FINSH_ARG_MAX 10
  64. #define FINSH_USING_OPTION_COMPLETION
  65. /* DFS: device virtual file system */
  66. #define RT_USING_DFS
  67. #define DFS_USING_POSIX
  68. #define DFS_USING_WORKDIR
  69. #define DFS_FD_MAX 16
  70. #define RT_USING_DFS_V1
  71. #define DFS_FILESYSTEMS_MAX 4
  72. #define DFS_FILESYSTEM_TYPES_MAX 4
  73. #define RT_USING_DFS_ELMFAT
  74. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  75. #define RT_DFS_ELM_CODE_PAGE 437
  76. #define RT_DFS_ELM_WORD_ACCESS
  77. #define RT_DFS_ELM_USE_LFN_3
  78. #define RT_DFS_ELM_USE_LFN 3
  79. #define RT_DFS_ELM_LFN_UNICODE_0
  80. #define RT_DFS_ELM_LFN_UNICODE 0
  81. #define RT_DFS_ELM_MAX_LFN 255
  82. #define RT_DFS_ELM_DRIVES 2
  83. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  84. #define RT_DFS_ELM_REENTRANT
  85. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  86. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  87. #define RT_USING_DFS_DEVFS
  88. /* end of DFS: device virtual file system */
  89. /* Device Drivers */
  90. #define RT_USING_DEVICE_IPC
  91. #define RT_UNAMED_PIPE_NUMBER 64
  92. #define RT_USING_SYSTEM_WORKQUEUE
  93. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  94. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  95. #define RT_USING_SERIAL
  96. #define RT_USING_SERIAL_V2
  97. #define RT_SERIAL_USING_DMA
  98. #define RT_USING_RTC
  99. #define RT_USING_SOFT_RTC
  100. #define RT_USING_PIN
  101. /* Using USB */
  102. /* end of Using USB */
  103. /* end of Device Drivers */
  104. /* C/C++ and POSIX layer */
  105. /* ISO-ANSI C layer */
  106. /* Timezone and Daylight Saving Time */
  107. /* end of Timezone and Daylight Saving Time */
  108. /* end of ISO-ANSI C layer */
  109. /* POSIX (Portable Operating System Interface) layer */
  110. #define RT_USING_POSIX_FS
  111. #define RT_USING_POSIX_POLL
  112. #define RT_USING_POSIX_SELECT
  113. #define RT_USING_POSIX_SOCKET
  114. /* Interprocess Communication (IPC) */
  115. /* Socket is in the 'Network' category */
  116. /* end of Interprocess Communication (IPC) */
  117. /* end of POSIX (Portable Operating System Interface) layer */
  118. /* end of C/C++ and POSIX layer */
  119. /* Network */
  120. #define RT_USING_SAL
  121. #define SAL_INTERNET_CHECK
  122. /* Docking with protocol stacks */
  123. #define SAL_USING_LWIP
  124. /* end of Docking with protocol stacks */
  125. #define SAL_USING_POSIX
  126. #define RT_USING_NETDEV
  127. #define NETDEV_USING_IFCONFIG
  128. #define NETDEV_USING_PING
  129. #define NETDEV_USING_NETSTAT
  130. #define NETDEV_USING_AUTO_DEFAULT
  131. #define NETDEV_IPV4 1
  132. #define NETDEV_IPV6 0
  133. #define RT_USING_LWIP
  134. #define RT_USING_LWIP203
  135. #define RT_USING_LWIP_VER_NUM 0x20003
  136. #define RT_LWIP_MEM_ALIGNMENT 4
  137. #define RT_LWIP_IGMP
  138. #define RT_LWIP_ICMP
  139. #define RT_LWIP_DNS
  140. #define RT_LWIP_DHCP
  141. #define IP_SOF_BROADCAST 1
  142. #define IP_SOF_BROADCAST_RECV 1
  143. /* Static IPv4 Address */
  144. #define RT_LWIP_IPADDR "192.168.1.30"
  145. #define RT_LWIP_GWADDR "192.168.1.1"
  146. #define RT_LWIP_MSKADDR "255.255.255.0"
  147. /* end of Static IPv4 Address */
  148. #define RT_LWIP_UDP
  149. #define RT_LWIP_TCP
  150. #define RT_LWIP_RAW
  151. #define RT_MEMP_NUM_NETCONN 8
  152. #define RT_LWIP_PBUF_NUM 16
  153. #define RT_LWIP_RAW_PCB_NUM 4
  154. #define RT_LWIP_UDP_PCB_NUM 4
  155. #define RT_LWIP_TCP_PCB_NUM 4
  156. #define RT_LWIP_TCP_SEG_NUM 40
  157. #define RT_LWIP_TCP_SND_BUF 8196
  158. #define RT_LWIP_TCP_WND 8196
  159. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  160. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  161. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  162. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  163. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  164. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  165. #define LWIP_NETIF_STATUS_CALLBACK 1
  166. #define LWIP_NETIF_LINK_CALLBACK 1
  167. #define RT_LWIP_NETIF_NAMESIZE 6
  168. #define SO_REUSE 1
  169. #define LWIP_SO_RCVTIMEO 1
  170. #define LWIP_SO_SNDTIMEO 1
  171. #define LWIP_SO_RCVBUF 1
  172. #define LWIP_SO_LINGER 0
  173. #define LWIP_NETIF_LOOPBACK 0
  174. #define RT_LWIP_USING_PING
  175. /* end of Network */
  176. /* Memory protection */
  177. /* end of Memory protection */
  178. /* Utilities */
  179. /* end of Utilities */
  180. /* end of RT-Thread Components */
  181. /* RT-Thread Utestcases */
  182. /* end of RT-Thread Utestcases */
  183. /* RT-Thread online packages */
  184. /* IoT - internet of things */
  185. /* Wi-Fi */
  186. /* Marvell WiFi */
  187. /* end of Marvell WiFi */
  188. /* Wiced WiFi */
  189. /* end of Wiced WiFi */
  190. /* CYW43012 WiFi */
  191. /* end of CYW43012 WiFi */
  192. /* BL808 WiFi */
  193. /* end of BL808 WiFi */
  194. /* CYW43439 WiFi */
  195. /* end of CYW43439 WiFi */
  196. /* end of Wi-Fi */
  197. #define PKG_USING_NETUTILS
  198. #define PKG_NETUTILS_IPERF
  199. #define IPERF_THREAD_STACK_SIZE 2048
  200. #define PKG_NETUTILS_NTP
  201. #define NTP_USING_AUTO_SYNC
  202. #define NTP_AUTO_SYNC_FIRST_DELAY 30
  203. #define NTP_AUTO_SYNC_PERIOD 3600
  204. #define NETUTILS_NTP_HOSTNAME "cn.ntp.org.cn"
  205. #define NETUTILS_NTP_HOSTNAME2 "ntp.rt-thread.org"
  206. #define NETUTILS_NTP_HOSTNAME3 "edu.ntp.org.cn"
  207. #define PKG_USING_NETUTILS_LATEST_VERSION
  208. #define PKG_NETUTILS_VER_NUM 0x99999
  209. /* IoT Cloud */
  210. /* end of IoT Cloud */
  211. /* end of IoT - internet of things */
  212. /* security packages */
  213. /* end of security packages */
  214. /* language packages */
  215. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  216. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  217. /* XML: Extensible Markup Language */
  218. /* end of XML: Extensible Markup Language */
  219. /* end of language packages */
  220. /* multimedia packages */
  221. /* LVGL: powerful and easy-to-use embedded GUI library */
  222. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  223. /* u8g2: a monochrome graphic library */
  224. /* end of u8g2: a monochrome graphic library */
  225. /* end of multimedia packages */
  226. /* tools packages */
  227. /* end of tools packages */
  228. /* system packages */
  229. /* enhanced kernel services */
  230. /* end of enhanced kernel services */
  231. /* acceleration: Assembly language or algorithmic acceleration packages */
  232. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  233. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  234. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  235. /* Micrium: Micrium software products porting for RT-Thread */
  236. /* end of Micrium: Micrium software products porting for RT-Thread */
  237. #define PKG_USING_RAMDISK
  238. #define PKG_USING_RAMDISK_V010
  239. /* end of system packages */
  240. /* peripheral libraries and drivers */
  241. /* HAL & SDK Drivers */
  242. /* STM32 HAL & SDK Drivers */
  243. /* end of STM32 HAL & SDK Drivers */
  244. /* Infineon HAL Packages */
  245. /* end of Infineon HAL Packages */
  246. /* Kendryte SDK */
  247. /* end of Kendryte SDK */
  248. /* WCH HAL & SDK Drivers */
  249. /* end of WCH HAL & SDK Drivers */
  250. /* AT32 HAL & SDK Drivers */
  251. /* end of AT32 HAL & SDK Drivers */
  252. /* HC32 DDL Drivers */
  253. /* end of HC32 DDL Drivers */
  254. /* NXP HAL & SDK Drivers */
  255. /* end of NXP HAL & SDK Drivers */
  256. /* end of HAL & SDK Drivers */
  257. /* sensors drivers */
  258. /* end of sensors drivers */
  259. /* touch drivers */
  260. /* end of touch drivers */
  261. /* end of peripheral libraries and drivers */
  262. /* AI packages */
  263. /* end of AI packages */
  264. /* Signal Processing and Control Algorithm Packages */
  265. /* end of Signal Processing and Control Algorithm Packages */
  266. /* miscellaneous packages */
  267. /* project laboratory */
  268. /* end of project laboratory */
  269. /* samples: kernel and components samples */
  270. /* end of samples: kernel and components samples */
  271. /* entertainment: terminal games and other interesting software packages */
  272. /* end of entertainment: terminal games and other interesting software packages */
  273. /* end of miscellaneous packages */
  274. /* Arduino libraries */
  275. /* Projects and Demos */
  276. /* end of Projects and Demos */
  277. /* Sensors */
  278. /* end of Sensors */
  279. /* Display */
  280. /* end of Display */
  281. /* Timing */
  282. /* end of Timing */
  283. /* Data Processing */
  284. /* end of Data Processing */
  285. /* Data Storage */
  286. /* Communication */
  287. /* end of Communication */
  288. /* Device Control */
  289. /* end of Device Control */
  290. /* Other */
  291. /* end of Other */
  292. /* Signal IO */
  293. /* end of Signal IO */
  294. /* Uncategorized */
  295. /* end of Arduino libraries */
  296. /* end of RT-Thread online packages */
  297. #define SOC_FAMILY_RENESAS_RZ
  298. #define SOC_SERIES_R9A07G0
  299. /* Hardware Drivers Config */
  300. #define SOC_R9A07G084
  301. /* Onboard Peripheral Drivers */
  302. /* On-chip Peripheral Drivers */
  303. #define BSP_USING_GPIO
  304. #define BSP_USING_UART
  305. #define BSP_USING_UART0
  306. #define BSP_UART0_RX_BUFSIZE 256
  307. #define BSP_UART0_TX_BUFSIZE 0
  308. #define BSP_USING_ETH
  309. /* end of On-chip Peripheral Drivers */
  310. /* Board extended module Drivers */
  311. /* end of Board extended module Drivers */
  312. /* end of Hardware Drivers Config */
  313. #endif