rtconfig.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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 8
  6. #define RT_USING_SMP
  7. #define RT_CPUS_NR 2
  8. #define RT_ALIGN_SIZE 4
  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 1024
  17. #define SYSTEM_THREAD_STACK_SIZE 1024
  18. #define RT_USING_TIMER_SOFT
  19. #define RT_TIMER_THREAD_PRIO 4
  20. #define RT_TIMER_THREAD_STACK_SIZE 1024
  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. #define RT_USING_SIGNALS
  32. /* end of Inter-Thread communication */
  33. /* Memory Management */
  34. #define RT_USING_MEMPOOL
  35. #define RT_USING_MEMHEAP
  36. #define RT_USING_SMALL_MEM
  37. #define RT_USING_MEMTRACE
  38. #define RT_USING_HEAP
  39. /* end of Memory Management */
  40. /* Kernel Device Object */
  41. #define RT_USING_DEVICE
  42. #define RT_USING_DEVICE_OPS
  43. #define RT_USING_INTERRUPT_INFO
  44. #define RT_USING_CONSOLE
  45. #define RT_CONSOLEBUF_SIZE 256
  46. #define RT_CONSOLE_DEVICE_NAME "uart0"
  47. /* end of Kernel Device Object */
  48. #define RT_VER_NUM 0x40100
  49. /* end of RT-Thread Kernel */
  50. #define ARCH_ARM
  51. #define RT_USING_CPU_FFS
  52. #define ARCH_ARM_CORTEX_A
  53. #define RT_USING_GIC_V2
  54. #define ARCH_ARM_CORTEX_A9
  55. /* RT-Thread Components */
  56. #define RT_USING_COMPONENTS_INIT
  57. #define RT_USING_USER_MAIN
  58. #define RT_MAIN_THREAD_STACK_SIZE 2048
  59. #define RT_MAIN_THREAD_PRIORITY 10
  60. /* C++ features */
  61. #define RT_USING_CPLUSPLUS
  62. /* end of C++ features */
  63. /* Command shell */
  64. #define RT_USING_FINSH
  65. #define RT_USING_MSH
  66. #define FINSH_USING_MSH
  67. #define FINSH_THREAD_NAME "tshell"
  68. #define FINSH_THREAD_PRIORITY 20
  69. #define FINSH_THREAD_STACK_SIZE 4096
  70. #define FINSH_USING_HISTORY
  71. #define FINSH_HISTORY_LINES 5
  72. #define FINSH_USING_SYMTAB
  73. #define FINSH_CMD_SIZE 80
  74. #define MSH_USING_BUILT_IN_COMMANDS
  75. #define FINSH_USING_DESCRIPTION
  76. #define FINSH_ARG_MAX 10
  77. /* end of Command shell */
  78. /* Device virtual file system */
  79. #define RT_USING_DFS
  80. #define DFS_USING_POSIX
  81. #define DFS_USING_WORKDIR
  82. #define DFS_FILESYSTEMS_MAX 4
  83. #define DFS_FILESYSTEM_TYPES_MAX 8
  84. #define DFS_FD_MAX 32
  85. #define RT_USING_DFS_ELMFAT
  86. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  87. #define RT_DFS_ELM_CODE_PAGE 437
  88. #define RT_DFS_ELM_WORD_ACCESS
  89. #define RT_DFS_ELM_USE_LFN_3
  90. #define RT_DFS_ELM_USE_LFN 3
  91. #define RT_DFS_ELM_LFN_UNICODE_0
  92. #define RT_DFS_ELM_LFN_UNICODE 0
  93. #define RT_DFS_ELM_MAX_LFN 255
  94. #define RT_DFS_ELM_DRIVES 2
  95. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  96. #define RT_DFS_ELM_REENTRANT
  97. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  98. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  99. #define RT_USING_DFS_DEVFS
  100. #define RT_USING_DFS_ROMFS
  101. #define RT_USING_DFS_RAMFS
  102. /* end of Device virtual file system */
  103. /* Device Drivers */
  104. #define RT_USING_DEVICE_IPC
  105. #define RT_PIPE_BUFSZ 512
  106. #define RT_USING_SYSTEM_WORKQUEUE
  107. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  108. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  109. #define RT_USING_SERIAL
  110. #define RT_USING_SERIAL_V1
  111. #define RT_SERIAL_USING_DMA
  112. #define RT_SERIAL_RB_BUFSZ 64
  113. #define RT_USING_I2C
  114. #define RT_USING_I2C_BITOPS
  115. #define RT_USING_PIN
  116. #define RT_USING_MTD_NOR
  117. #define RT_USING_MTD_NAND
  118. #define RT_MTD_NAND_DEBUG
  119. #define RT_USING_RTC
  120. #define RT_USING_SOFT_RTC
  121. #define RT_USING_SDIO
  122. #define RT_SDIO_STACK_SIZE 512
  123. #define RT_SDIO_THREAD_PRIORITY 15
  124. #define RT_MMCSD_STACK_SIZE 1024
  125. #define RT_MMCSD_THREAD_PREORITY 22
  126. #define RT_MMCSD_MAX_PARTITION 16
  127. #define RT_USING_SPI
  128. #define RT_USING_SPI_MSD
  129. #define RT_USING_SFUD
  130. #define RT_SFUD_USING_SFDP
  131. #define RT_SFUD_USING_FLASH_INFO_TABLE
  132. #define RT_SFUD_SPI_MAX_HZ 50000000
  133. #define RT_USING_WDT
  134. /* Using USB */
  135. /* end of Using USB */
  136. /* end of Device Drivers */
  137. /* POSIX layer and C standard library */
  138. #define RT_USING_LIBC
  139. #define RT_LIBC_USING_TIME
  140. #define RT_LIBC_USING_FILEIO
  141. #define RT_LIBC_DEFAULT_TIMEZONE 8
  142. /* POSIX (Portable Operating System Interface) layer */
  143. #define RT_USING_POSIX_FS
  144. #define RT_USING_POSIX_DEVIO
  145. #define RT_USING_POSIX_POLL
  146. #define RT_USING_POSIX_SELECT
  147. #define RT_USING_POSIX_DELAY
  148. #define RT_USING_POSIX_GETLINE
  149. #define RT_USING_POSIX_MMAP
  150. #define RT_USING_POSIX_TERMIOS
  151. #define RT_USING_POSIX_AIO
  152. #define RT_USING_PTHREADS
  153. #define PTHREAD_NUM_MAX 8
  154. /* end of POSIX (Portable Operating System Interface) layer */
  155. /* end of POSIX layer and C standard library */
  156. /* Network */
  157. /* Socket abstraction layer */
  158. #define RT_USING_SAL
  159. #define SAL_INTERNET_CHECK
  160. /* protocol stack implement */
  161. #define SAL_USING_LWIP
  162. /* end of protocol stack implement */
  163. #define SAL_USING_POSIX
  164. /* end of Socket abstraction layer */
  165. /* Network interface device */
  166. #define RT_USING_NETDEV
  167. #define NETDEV_USING_IFCONFIG
  168. #define NETDEV_USING_PING
  169. #define NETDEV_USING_NETSTAT
  170. #define NETDEV_USING_AUTO_DEFAULT
  171. #define NETDEV_IPV4 1
  172. #define NETDEV_IPV6 0
  173. /* end of Network interface device */
  174. /* light weight TCP/IP stack */
  175. #define RT_USING_LWIP
  176. #define RT_USING_LWIP212
  177. #define RT_LWIP_MEM_ALIGNMENT 4
  178. #define RT_LWIP_ICMP
  179. #define RT_LWIP_DNS
  180. #define RT_LWIP_DHCP
  181. #define IP_SOF_BROADCAST 1
  182. #define IP_SOF_BROADCAST_RECV 1
  183. /* Static IPv4 Address */
  184. #define RT_LWIP_IPADDR "192.168.1.30"
  185. #define RT_LWIP_GWADDR "192.168.1.1"
  186. #define RT_LWIP_MSKADDR "255.255.255.0"
  187. /* end of Static IPv4 Address */
  188. #define RT_LWIP_UDP
  189. #define RT_LWIP_TCP
  190. #define RT_LWIP_RAW
  191. #define RT_MEMP_NUM_NETCONN 8
  192. #define RT_LWIP_PBUF_NUM 16
  193. #define RT_LWIP_RAW_PCB_NUM 4
  194. #define RT_LWIP_UDP_PCB_NUM 4
  195. #define RT_LWIP_TCP_PCB_NUM 4
  196. #define RT_LWIP_TCP_SEG_NUM 40
  197. #define RT_LWIP_TCP_SND_BUF 8196
  198. #define RT_LWIP_TCP_WND 8196
  199. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  200. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  201. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  202. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  203. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  204. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  205. #define RT_LWIP_REASSEMBLY_FRAG
  206. #define LWIP_NETIF_STATUS_CALLBACK 1
  207. #define LWIP_NETIF_LINK_CALLBACK 1
  208. #define SO_REUSE 1
  209. #define LWIP_SO_RCVTIMEO 1
  210. #define LWIP_SO_SNDTIMEO 1
  211. #define LWIP_SO_RCVBUF 1
  212. #define LWIP_SO_LINGER 0
  213. #define LWIP_NETIF_LOOPBACK 0
  214. #define RT_LWIP_USING_PING
  215. /* end of light weight TCP/IP stack */
  216. /* AT commands */
  217. /* end of AT commands */
  218. /* end of Network */
  219. /* VBUS(Virtual Software BUS) */
  220. /* end of VBUS(Virtual Software BUS) */
  221. /* Utilities */
  222. /* end of Utilities */
  223. #define RT_USING_LWP
  224. /* end of RT-Thread Components */
  225. /* RT-Thread Utestcases */
  226. /* end of RT-Thread Utestcases */
  227. /* RT-Thread online packages */
  228. /* IoT - internet of things */
  229. /* Wi-Fi */
  230. /* Marvell WiFi */
  231. /* end of Marvell WiFi */
  232. /* Wiced WiFi */
  233. /* end of Wiced WiFi */
  234. /* end of Wi-Fi */
  235. /* IoT Cloud */
  236. /* end of IoT Cloud */
  237. /* end of IoT - internet of things */
  238. /* security packages */
  239. /* end of security packages */
  240. /* language packages */
  241. /* end of language packages */
  242. /* multimedia packages */
  243. /* LVGL: powerful and easy-to-use embedded GUI library */
  244. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  245. /* u8g2: a monochrome graphic library */
  246. /* end of u8g2: a monochrome graphic library */
  247. /* PainterEngine: A cross-platform graphics application framework written in C language */
  248. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  249. /* end of multimedia packages */
  250. /* tools packages */
  251. /* end of tools packages */
  252. /* system packages */
  253. /* acceleration: Assembly language or algorithmic acceleration packages */
  254. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  255. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  256. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  257. /* Micrium: Micrium software products porting for RT-Thread */
  258. /* end of Micrium: Micrium software products porting for RT-Thread */
  259. /* end of system packages */
  260. /* peripheral libraries and drivers */
  261. /* end of peripheral libraries and drivers */
  262. /* AI packages */
  263. /* end of AI packages */
  264. /* miscellaneous packages */
  265. /* samples: kernel and components samples */
  266. /* end of samples: kernel and components samples */
  267. /* entertainment: terminal games and other interesting software packages */
  268. /* end of entertainment: terminal games and other interesting software packages */
  269. /* end of miscellaneous packages */
  270. /* end of RT-Thread online packages */
  271. #define SOC_VEXPRESS_A9
  272. #define RT_USING_UART0
  273. #define RT_USING_UART1
  274. #define BSP_DRV_EMAC
  275. #endif