rtconfig.h 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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 32
  6. #define RT_USING_SMP
  7. #define RT_CPUS_NR 4
  8. #define RT_ALIGN_SIZE 128
  9. #define RT_THREAD_PRIORITY_32
  10. #define RT_THREAD_PRIORITY_MAX 32
  11. #define RT_TICK_PER_SECOND 100
  12. #define RT_USING_OVERFLOW_CHECK
  13. #define RT_USING_HOOK
  14. #define RT_USING_IDLE_HOOK
  15. #define RT_IDLE_HOOK_LIST_SIZE 4
  16. #define IDLE_THREAD_STACK_SIZE 4096
  17. #define SYSTEM_THREAD_STACK_SIZE 4096
  18. #define RT_USING_TIMER_SOFT
  19. #define RT_TIMER_THREAD_PRIO 4
  20. #define RT_TIMER_THREAD_STACK_SIZE 512
  21. /* kservice optimization */
  22. /* end of kservice optimization */
  23. #define RT_DEBUG
  24. #define RT_DEBUG_COLOR
  25. /* Inter-Thread communication */
  26. #define RT_USING_SEMAPHORE
  27. #define RT_USING_MUTEX
  28. #define RT_USING_EVENT
  29. #define RT_USING_MAILBOX
  30. #define RT_USING_MESSAGEQUEUE
  31. /* end of Inter-Thread communication */
  32. /* Memory Management */
  33. #define RT_USING_MEMHEAP
  34. #define RT_USING_SLAB
  35. #define RT_USING_HEAP
  36. /* end of Memory Management */
  37. /* Kernel Device Object */
  38. #define RT_USING_DEVICE
  39. #define RT_USING_INTERRUPT_INFO
  40. #define RT_USING_CONSOLE
  41. #define RT_CONSOLEBUF_SIZE 4096
  42. #define RT_CONSOLE_DEVICE_NAME "uart1"
  43. /* end of Kernel Device Object */
  44. #define RT_VER_NUM 0x40005
  45. /* end of RT-Thread Kernel */
  46. #define ARCH_ARM
  47. #define RT_USING_CPU_FFS
  48. #define ARCH_ARM_CORTEX_A
  49. #define RT_USING_GIC_V3
  50. /* RT-Thread Components */
  51. #define RT_USING_COMPONENTS_INIT
  52. #define RT_USING_USER_MAIN
  53. #define RT_MAIN_THREAD_STACK_SIZE 2048
  54. #define RT_MAIN_THREAD_PRIORITY 10
  55. /* C++ features */
  56. /* end of C++ features */
  57. /* Command shell */
  58. #define RT_USING_FINSH
  59. #define RT_USING_MSH
  60. #define FINSH_USING_MSH
  61. #define FINSH_THREAD_NAME "tshell"
  62. #define FINSH_THREAD_PRIORITY 20
  63. #define FINSH_THREAD_STACK_SIZE 4096
  64. #define FINSH_USING_HISTORY
  65. #define FINSH_HISTORY_LINES 5
  66. #define FINSH_USING_SYMTAB
  67. #define FINSH_CMD_SIZE 128
  68. #define MSH_USING_BUILT_IN_COMMANDS
  69. #define FINSH_USING_DESCRIPTION
  70. #define FINSH_ARG_MAX 10
  71. /* end of Command shell */
  72. /* Device virtual file system */
  73. #define RT_USING_DFS
  74. #define DFS_USING_WORKDIR
  75. #define DFS_FILESYSTEMS_MAX 2
  76. #define DFS_FILESYSTEM_TYPES_MAX 2
  77. #define DFS_FD_MAX 16
  78. #define RT_USING_DFS_ELMFAT
  79. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  80. #define RT_DFS_ELM_CODE_PAGE 437
  81. #define RT_DFS_ELM_WORD_ACCESS
  82. #define RT_DFS_ELM_USE_LFN_3
  83. #define RT_DFS_ELM_USE_LFN 3
  84. #define RT_DFS_ELM_LFN_UNICODE_0
  85. #define RT_DFS_ELM_LFN_UNICODE 0
  86. #define RT_DFS_ELM_MAX_LFN 255
  87. #define RT_DFS_ELM_DRIVES 2
  88. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  89. #define RT_DFS_ELM_REENTRANT
  90. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  91. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  92. #define RT_USING_DFS_DEVFS
  93. /* end of Device virtual file system */
  94. /* Device Drivers */
  95. #define RT_USING_DEVICE_IPC
  96. #define RT_PIPE_BUFSZ 512
  97. #define RT_USING_SERIAL
  98. #define RT_USING_SERIAL_V1
  99. #define RT_SERIAL_USING_DMA
  100. #define RT_SERIAL_RB_BUFSZ 256
  101. #define RT_USING_CAN
  102. #define RT_USING_SDIO
  103. #define RT_SDIO_STACK_SIZE 512
  104. #define RT_SDIO_THREAD_PRIORITY 15
  105. #define RT_MMCSD_STACK_SIZE 1024
  106. #define RT_MMCSD_THREAD_PREORITY 22
  107. #define RT_MMCSD_MAX_PARTITION 16
  108. #define RT_USING_SPI
  109. #define RT_USING_QSPI
  110. #define RT_USING_SFUD
  111. #define RT_SFUD_USING_SFDP
  112. #define RT_SFUD_USING_FLASH_INFO_TABLE
  113. #define RT_SFUD_USING_QSPI
  114. #define RT_SFUD_SPI_MAX_HZ 50000000
  115. /* Using USB */
  116. /* end of Using USB */
  117. /* end of Device Drivers */
  118. /* POSIX layer and C standard library */
  119. #define RT_USING_LIBC
  120. #define RT_USING_POSIX
  121. #define RT_LIBC_USING_TIME
  122. #define RT_LIBC_DEFAULT_TIMEZONE 8
  123. /* end of POSIX layer and C standard library */
  124. /* Network */
  125. /* Socket abstraction layer */
  126. /* end of Socket abstraction layer */
  127. /* Network interface device */
  128. #define RT_USING_NETDEV
  129. #define NETDEV_USING_IFCONFIG
  130. #define NETDEV_USING_PING
  131. #define NETDEV_USING_NETSTAT
  132. #define NETDEV_USING_AUTO_DEFAULT
  133. #define NETDEV_IPV4 1
  134. #define NETDEV_IPV6 0
  135. /* end of Network interface device */
  136. /* light weight TCP/IP stack */
  137. #define RT_USING_LWIP
  138. #define RT_USING_LWIP212
  139. #define RT_LWIP_MEM_ALIGNMENT 4
  140. #define RT_LWIP_IGMP
  141. #define RT_LWIP_ICMP
  142. #define RT_LWIP_DNS
  143. /* Static IPv4 Address */
  144. #define RT_LWIP_IPADDR "192.168.3.20"
  145. #define RT_LWIP_GWADDR "192.168.3.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 SO_REUSE 1
  168. #define LWIP_SO_RCVTIMEO 1
  169. #define LWIP_SO_SNDTIMEO 1
  170. #define LWIP_SO_RCVBUF 1
  171. #define LWIP_SO_LINGER 0
  172. #define LWIP_NETIF_LOOPBACK 0
  173. #define RT_LWIP_USING_PING
  174. /* end of light weight TCP/IP stack */
  175. /* AT commands */
  176. /* end of AT commands */
  177. /* end of Network */
  178. /* VBUS(Virtual Software BUS) */
  179. /* end of VBUS(Virtual Software BUS) */
  180. /* Utilities */
  181. #define RT_USING_ULOG
  182. #define ULOG_OUTPUT_LVL_W
  183. #define ULOG_OUTPUT_LVL 4
  184. #define ULOG_ASSERT_ENABLE
  185. #define ULOG_LINE_BUF_SIZE 128
  186. /* log format */
  187. #define ULOG_USING_COLOR
  188. #define ULOG_OUTPUT_TIME
  189. #define ULOG_OUTPUT_LEVEL
  190. #define ULOG_OUTPUT_TAG
  191. /* end of log format */
  192. #define ULOG_BACKEND_USING_CONSOLE
  193. /* end of Utilities */
  194. /* end of RT-Thread Components */
  195. /* RT-Thread Utestcases */
  196. /* end of RT-Thread Utestcases */
  197. /* RT-Thread online packages */
  198. /* IoT - internet of things */
  199. /* Wi-Fi */
  200. /* Marvell WiFi */
  201. /* end of Marvell WiFi */
  202. /* Wiced WiFi */
  203. /* end of Wiced WiFi */
  204. /* end of Wi-Fi */
  205. /* IoT Cloud */
  206. /* end of IoT Cloud */
  207. /* end of IoT - internet of things */
  208. /* security packages */
  209. /* end of security packages */
  210. /* language packages */
  211. /* end of language packages */
  212. /* multimedia packages */
  213. /* LVGL: powerful and easy-to-use embedded GUI library */
  214. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  215. /* u8g2: a monochrome graphic library */
  216. /* end of u8g2: a monochrome graphic library */
  217. /* PainterEngine: A cross-platform graphics application framework written in C language */
  218. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  219. /* end of multimedia packages */
  220. /* tools packages */
  221. /* end of tools packages */
  222. /* system packages */
  223. /* enhanced kernel services */
  224. /* end of enhanced kernel services */
  225. /* acceleration: Assembly language or algorithmic acceleration packages */
  226. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  227. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  228. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  229. /* Micrium: Micrium software products porting for RT-Thread */
  230. /* end of Micrium: Micrium software products porting for RT-Thread */
  231. /* end of system packages */
  232. /* peripheral libraries and drivers */
  233. /* end of peripheral libraries and drivers */
  234. /* AI packages */
  235. /* end of AI packages */
  236. /* miscellaneous packages */
  237. /* samples: kernel and components samples */
  238. /* end of samples: kernel and components samples */
  239. /* entertainment: terminal games and other interesting software packages */
  240. /* end of entertainment: terminal games and other interesting software packages */
  241. /* end of miscellaneous packages */
  242. /* end of RT-Thread online packages */
  243. #define FT2004
  244. /* Hardware Drivers Config */
  245. /* On-chip Peripheral Drivers */
  246. #define BSP_USING_UART
  247. #define RT_USING_UART1
  248. #define BSP_USING_SDC
  249. #define BSP_USING_GMAC
  250. #define BSP_USING_GMAC1
  251. #define RT_LWIP_ETH_PAD_SIZE 2
  252. #define BSP_USE_SPI
  253. #define BSP_USE_GPIO
  254. #define BSP_USE_CAN
  255. #define BSP_USING_CAN0
  256. /* end of On-chip Peripheral Drivers */
  257. /* Board extended module Drivers */
  258. /* end of Hardware Drivers Config */
  259. #endif