rtconfig.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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_ALIGN_SIZE 4
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 100
  10. #define RT_USING_OVERFLOW_CHECK
  11. #define RT_USING_HOOK
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 256
  15. /* kservice optimization */
  16. /* end of kservice optimization */
  17. #define RT_DEBUG
  18. #define RT_DEBUG_COLOR
  19. /* Inter-Thread communication */
  20. #define RT_USING_SEMAPHORE
  21. #define RT_USING_MUTEX
  22. #define RT_USING_EVENT
  23. #define RT_USING_MAILBOX
  24. #define RT_USING_MESSAGEQUEUE
  25. /* end of Inter-Thread communication */
  26. /* Memory Management */
  27. #define RT_USING_MEMPOOL
  28. #define RT_USING_SMALL_MEM
  29. #define RT_USING_HEAP
  30. /* end of Memory Management */
  31. /* Kernel Device Object */
  32. #define RT_USING_DEVICE
  33. #define RT_USING_CONSOLE
  34. #define RT_CONSOLEBUF_SIZE 128
  35. #define RT_CONSOLE_DEVICE_NAME "uart0"
  36. /* end of Kernel Device Object */
  37. #define RT_VER_NUM 0x40100
  38. /* end of RT-Thread Kernel */
  39. /* RT-Thread Components */
  40. #define RT_USING_COMPONENTS_INIT
  41. #define RT_USING_USER_MAIN
  42. #define RT_MAIN_THREAD_STACK_SIZE 2048
  43. #define RT_MAIN_THREAD_PRIORITY 10
  44. /* C++ features */
  45. /* end of C++ features */
  46. /* Command shell */
  47. #define RT_USING_FINSH
  48. #define RT_USING_MSH
  49. #define FINSH_USING_MSH
  50. #define FINSH_THREAD_NAME "tshell"
  51. #define FINSH_THREAD_PRIORITY 20
  52. #define FINSH_THREAD_STACK_SIZE 4096
  53. #define FINSH_USING_HISTORY
  54. #define FINSH_HISTORY_LINES 5
  55. #define FINSH_USING_SYMTAB
  56. #define FINSH_CMD_SIZE 80
  57. #define MSH_USING_BUILT_IN_COMMANDS
  58. #define FINSH_USING_DESCRIPTION
  59. #define FINSH_ARG_MAX 10
  60. /* end of Command shell */
  61. /* Device virtual file system */
  62. #define RT_USING_DFS
  63. #define DFS_USING_POSIX
  64. #define DFS_USING_WORKDIR
  65. #define DFS_FILESYSTEMS_MAX 4
  66. #define DFS_FILESYSTEM_TYPES_MAX 4
  67. #define DFS_FD_MAX 16
  68. #define RT_USING_DFS_ELMFAT
  69. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  70. #define RT_DFS_ELM_CODE_PAGE 437
  71. #define RT_DFS_ELM_WORD_ACCESS
  72. #define RT_DFS_ELM_USE_LFN_0
  73. #define RT_DFS_ELM_USE_LFN 0
  74. #define RT_DFS_ELM_LFN_UNICODE_0
  75. #define RT_DFS_ELM_LFN_UNICODE 0
  76. #define RT_DFS_ELM_MAX_LFN 255
  77. #define RT_DFS_ELM_DRIVES 2
  78. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  79. #define RT_DFS_ELM_REENTRANT
  80. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  81. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  82. #define RT_USING_DFS_DEVFS
  83. /* end of Device virtual file system */
  84. /* Device Drivers */
  85. #define RT_USING_DEVICE_IPC
  86. #define RT_PIPE_BUFSZ 512
  87. #define RT_USING_SYSTEM_WORKQUEUE
  88. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  89. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  90. #define RT_USING_SERIAL
  91. #define RT_USING_SERIAL_V1
  92. #define RT_SERIAL_USING_DMA
  93. #define RT_SERIAL_RB_BUFSZ 64
  94. #define RT_USING_PIN
  95. /* Using USB */
  96. /* end of Using USB */
  97. /* end of Device Drivers */
  98. /* POSIX layer and C standard library */
  99. #define RT_USING_LIBC
  100. #define RT_LIBC_USING_TIME
  101. #define RT_LIBC_DEFAULT_TIMEZONE 8
  102. /* POSIX (Portable Operating System Interface) layer */
  103. #define RT_USING_POSIX_FS
  104. #define RT_USING_POSIX_POLL
  105. #define RT_USING_POSIX_SELECT
  106. /* end of POSIX (Portable Operating System Interface) layer */
  107. /* end of POSIX layer and C standard library */
  108. /* Network */
  109. /* Socket abstraction layer */
  110. #define RT_USING_SAL
  111. #define SAL_INTERNET_CHECK
  112. /* protocol stack implement */
  113. #define SAL_USING_LWIP
  114. /* end of protocol stack implement */
  115. #define SAL_USING_POSIX
  116. /* end of Socket abstraction layer */
  117. /* Network interface device */
  118. #define RT_USING_NETDEV
  119. #define NETDEV_USING_IFCONFIG
  120. #define NETDEV_USING_PING
  121. #define NETDEV_USING_NETSTAT
  122. #define NETDEV_USING_AUTO_DEFAULT
  123. #define NETDEV_IPV4 1
  124. #define NETDEV_IPV6 0
  125. /* end of Network interface device */
  126. /* light weight TCP/IP stack */
  127. #define RT_USING_LWIP
  128. #define RT_USING_LWIP202
  129. #define RT_LWIP_MEM_ALIGNMENT 4
  130. #define RT_LWIP_IGMP
  131. #define RT_LWIP_ICMP
  132. #define RT_LWIP_DNS
  133. #define RT_LWIP_DHCP
  134. #define IP_SOF_BROADCAST 1
  135. #define IP_SOF_BROADCAST_RECV 1
  136. /* Static IPv4 Address */
  137. #define RT_LWIP_IPADDR "192.168.1.30"
  138. #define RT_LWIP_GWADDR "192.168.1.1"
  139. #define RT_LWIP_MSKADDR "255.255.255.0"
  140. /* end of Static IPv4 Address */
  141. #define RT_LWIP_UDP
  142. #define RT_LWIP_TCP
  143. #define RT_LWIP_RAW
  144. #define RT_MEMP_NUM_NETCONN 8
  145. #define RT_LWIP_PBUF_NUM 16
  146. #define RT_LWIP_RAW_PCB_NUM 4
  147. #define RT_LWIP_UDP_PCB_NUM 4
  148. #define RT_LWIP_TCP_PCB_NUM 4
  149. #define RT_LWIP_TCP_SEG_NUM 40
  150. #define RT_LWIP_TCP_SND_BUF 8196
  151. #define RT_LWIP_TCP_WND 8196
  152. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  153. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  154. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  155. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  156. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  157. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  158. #define LWIP_NETIF_STATUS_CALLBACK 1
  159. #define LWIP_NETIF_LINK_CALLBACK 1
  160. #define SO_REUSE 1
  161. #define LWIP_SO_RCVTIMEO 1
  162. #define LWIP_SO_SNDTIMEO 1
  163. #define LWIP_SO_RCVBUF 1
  164. #define LWIP_SO_LINGER 0
  165. #define LWIP_NETIF_LOOPBACK 0
  166. #define RT_LWIP_USING_PING
  167. /* end of light weight TCP/IP stack */
  168. /* AT commands */
  169. /* end of AT commands */
  170. /* end of Network */
  171. /* VBUS(Virtual Software BUS) */
  172. /* end of VBUS(Virtual Software BUS) */
  173. /* Utilities */
  174. /* end of Utilities */
  175. /* end of RT-Thread Components */
  176. /* RT-Thread Utestcases */
  177. /* end of RT-Thread Utestcases */
  178. /* RT-Thread online packages */
  179. /* IoT - internet of things */
  180. /* Wi-Fi */
  181. /* Marvell WiFi */
  182. /* end of Marvell WiFi */
  183. /* Wiced WiFi */
  184. /* end of Wiced WiFi */
  185. /* end of Wi-Fi */
  186. /* IoT Cloud */
  187. /* end of IoT Cloud */
  188. /* end of IoT - internet of things */
  189. /* security packages */
  190. /* end of security packages */
  191. /* language packages */
  192. /* end of language packages */
  193. /* multimedia packages */
  194. /* LVGL: powerful and easy-to-use embedded GUI library */
  195. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  196. /* u8g2: a monochrome graphic library */
  197. /* end of u8g2: a monochrome graphic library */
  198. /* PainterEngine: A cross-platform graphics application framework written in C language */
  199. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  200. /* end of multimedia packages */
  201. /* tools packages */
  202. /* end of tools packages */
  203. /* system packages */
  204. /* acceleration: Assembly language or algorithmic acceleration packages */
  205. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  206. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  207. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  208. /* Micrium: Micrium software products porting for RT-Thread */
  209. /* end of Micrium: Micrium software products porting for RT-Thread */
  210. /* end of system packages */
  211. /* peripheral libraries and drivers */
  212. /* end of peripheral libraries and drivers */
  213. /* AI packages */
  214. /* end of AI packages */
  215. /* miscellaneous packages */
  216. /* samples: kernel and components samples */
  217. /* end of samples: kernel and components samples */
  218. /* entertainment: terminal games and other interesting software packages */
  219. /* end of entertainment: terminal games and other interesting software packages */
  220. /* end of miscellaneous packages */
  221. /* end of RT-Thread online packages */
  222. #define SOC_GD32450Z
  223. #define BSP_USING_SDRAM
  224. #define BSP_USING_UART0
  225. #endif