rtconfig.h 9.5 KB

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