rtconfig.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. /* klibc options */
  5. /* rt_vsnprintf options */
  6. /* end of rt_vsnprintf options */
  7. /* rt_vsscanf options */
  8. /* end of rt_vsscanf options */
  9. /* rt_memset options */
  10. /* end of rt_memset options */
  11. /* rt_memcpy options */
  12. /* end of rt_memcpy options */
  13. /* rt_memmove options */
  14. /* end of rt_memmove options */
  15. /* rt_memcmp options */
  16. /* end of rt_memcmp options */
  17. /* rt_strstr options */
  18. /* end of rt_strstr options */
  19. /* rt_strcasecmp options */
  20. /* end of rt_strcasecmp options */
  21. /* rt_strncpy options */
  22. /* end of rt_strncpy options */
  23. /* rt_strcpy options */
  24. /* end of rt_strcpy options */
  25. /* rt_strncmp options */
  26. /* end of rt_strncmp options */
  27. /* rt_strcmp options */
  28. /* end of rt_strcmp options */
  29. /* rt_strlen options */
  30. /* end of rt_strlen options */
  31. /* rt_strnlen options */
  32. /* end of rt_strnlen options */
  33. /* end of klibc options */
  34. #define RT_NAME_MAX 12
  35. #define RT_CPUS_NR 1
  36. #define RT_ALIGN_SIZE 8
  37. #define RT_THREAD_PRIORITY_32
  38. #define RT_THREAD_PRIORITY_MAX 32
  39. #define RT_TICK_PER_SECOND 1000
  40. #define IDLE_THREAD_STACK_SIZE 256
  41. /* kservice options */
  42. /* end of kservice options */
  43. #define RT_USING_DEBUG
  44. #define RT_DEBUGING_ASSERT
  45. #define RT_DEBUGING_COLOR
  46. #define RT_DEBUGING_CONTEXT
  47. /* Inter-Thread communication */
  48. #define RT_USING_SEMAPHORE
  49. #define RT_USING_MUTEX
  50. #define RT_USING_MAILBOX
  51. #define RT_USING_MESSAGEQUEUE
  52. /* end of Inter-Thread communication */
  53. /* Memory Management */
  54. #define RT_USING_SMALL_MEM
  55. #define RT_USING_SMALL_MEM_AS_HEAP
  56. #define RT_USING_HEAP
  57. /* end of Memory Management */
  58. #define RT_USING_DEVICE
  59. #define RT_USING_CONSOLE
  60. #define RT_CONSOLEBUF_SIZE 128
  61. #define RT_CONSOLE_DEVICE_NAME "uart1"
  62. #define RT_VER_NUM 0x50201
  63. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  64. /* end of RT-Thread Kernel */
  65. /* RT-Thread Components */
  66. #define RT_USING_COMPONENTS_INIT
  67. #define RT_USING_USER_MAIN
  68. #define RT_MAIN_THREAD_STACK_SIZE 1024
  69. #define RT_MAIN_THREAD_PRIORITY 10
  70. #define RT_USING_MSH
  71. #define RT_USING_FINSH
  72. #define FINSH_USING_MSH
  73. #define FINSH_THREAD_NAME "tshell"
  74. #define FINSH_THREAD_PRIORITY 20
  75. #define FINSH_THREAD_STACK_SIZE 2048
  76. #define FINSH_USING_HISTORY
  77. #define FINSH_HISTORY_LINES 5
  78. #define FINSH_USING_SYMTAB
  79. #define FINSH_CMD_SIZE 80
  80. #define MSH_USING_BUILT_IN_COMMANDS
  81. #define FINSH_USING_DESCRIPTION
  82. #define FINSH_ARG_MAX 10
  83. #define FINSH_USING_OPTION_COMPLETION
  84. /* DFS: device virtual file system */
  85. /* end of DFS: device virtual file system */
  86. /* Device Drivers */
  87. #define RT_USING_DEVICE_IPC
  88. #define RT_UNAMED_PIPE_NUMBER 64
  89. #define RT_USING_SERIAL
  90. #define RT_USING_SERIAL_V1
  91. #define RT_SERIAL_RB_BUFSZ 64
  92. /* end of Device Drivers */
  93. /* C/C++ and POSIX layer */
  94. /* ISO-ANSI C layer */
  95. /* Timezone and Daylight Saving Time */
  96. #define RT_LIBC_USING_LIGHT_TZ_DST
  97. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  98. #define RT_LIBC_TZ_DEFAULT_MIN 0
  99. #define RT_LIBC_TZ_DEFAULT_SEC 0
  100. /* end of Timezone and Daylight Saving Time */
  101. /* end of ISO-ANSI C layer */
  102. /* POSIX (Portable Operating System Interface) layer */
  103. /* Interprocess Communication (IPC) */
  104. /* Socket is in the 'Network' category */
  105. /* end of Interprocess Communication (IPC) */
  106. /* end of POSIX (Portable Operating System Interface) layer */
  107. /* end of C/C++ and POSIX layer */
  108. /* Network */
  109. #define RT_USING_NETDEV
  110. #define NETDEV_USING_IFCONFIG
  111. #define NETDEV_USING_PING
  112. #define NETDEV_IPV4 1
  113. #define NETDEV_IPV6 0
  114. #define RT_USING_LWIP
  115. #define RT_USING_LWIP212
  116. #define RT_USING_LWIP_VER_NUM 0x20102
  117. #define RT_LWIP_MEM_ALIGNMENT 4
  118. #define RT_LWIP_ICMP
  119. #define RT_LWIP_DNS
  120. /* Static IPv4 Address */
  121. #define RT_LWIP_IPADDR "19.111.115.250"
  122. #define RT_LWIP_GWADDR "19.111.115.254"
  123. #define RT_LWIP_MSKADDR "255.255.255.0"
  124. /* end of Static IPv4 Address */
  125. #define RT_LWIP_UDP
  126. #define RT_LWIP_TCP
  127. #define RT_LWIP_RAW
  128. #define RT_MEMP_NUM_NETCONN 4
  129. #define RT_LWIP_PBUF_NUM 4
  130. #define RT_LWIP_RAW_PCB_NUM 4
  131. #define RT_LWIP_UDP_PCB_NUM 4
  132. #define RT_LWIP_TCP_PCB_NUM 4
  133. #define RT_LWIP_TCP_SEG_NUM 8
  134. #define RT_LWIP_TCP_SND_BUF 3072
  135. #define RT_LWIP_TCP_WND 3072
  136. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  137. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
  138. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  139. #define LWIP_NO_TX_THREAD
  140. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  141. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  142. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
  143. #define LWIP_NETIF_STATUS_CALLBACK 0
  144. #define LWIP_NETIF_LINK_CALLBACK 0
  145. #define RT_LWIP_NETIF_NAMESIZE 6
  146. #define SO_REUSE 1
  147. #define LWIP_SO_RCVTIMEO 1
  148. #define LWIP_SO_SNDTIMEO 1
  149. #define LWIP_SO_RCVBUF 1
  150. #define LWIP_SO_LINGER 0
  151. #define LWIP_NETIF_LOOPBACK 0
  152. #define RT_LWIP_USING_PING
  153. /* end of Network */
  154. /* Memory protection */
  155. /* end of Memory protection */
  156. /* Utilities */
  157. /* end of Utilities */
  158. /* Using USB legacy version */
  159. #define RT_USING_USB
  160. #define RT_USING_USB_HOST
  161. #define RT_USBD_THREAD_STACK_SZ 512
  162. /* end of Using USB legacy version */
  163. /* end of RT-Thread Components */
  164. /* RT-Thread Utestcases */
  165. /* end of RT-Thread Utestcases */
  166. /* RT-Thread online packages */
  167. /* IoT - internet of things */
  168. /* Wi-Fi */
  169. /* Marvell WiFi */
  170. /* end of Marvell WiFi */
  171. /* Wiced WiFi */
  172. /* end of Wiced WiFi */
  173. /* CYW43012 WiFi */
  174. /* end of CYW43012 WiFi */
  175. /* BL808 WiFi */
  176. /* end of BL808 WiFi */
  177. /* CYW43439 WiFi */
  178. /* end of CYW43439 WiFi */
  179. /* end of Wi-Fi */
  180. /* IoT Cloud */
  181. /* end of IoT Cloud */
  182. /* end of IoT - internet of things */
  183. /* security packages */
  184. /* end of security packages */
  185. /* language packages */
  186. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  187. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  188. /* XML: Extensible Markup Language */
  189. /* end of XML: Extensible Markup Language */
  190. /* end of language packages */
  191. /* multimedia packages */
  192. /* LVGL: powerful and easy-to-use embedded GUI library */
  193. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  194. /* u8g2: a monochrome graphic library */
  195. /* end of u8g2: a monochrome graphic library */
  196. /* end of multimedia packages */
  197. /* tools packages */
  198. /* end of tools packages */
  199. /* system packages */
  200. /* enhanced kernel services */
  201. /* end of enhanced kernel services */
  202. /* acceleration: Assembly language or algorithmic acceleration packages */
  203. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  204. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  205. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  206. /* Micrium: Micrium software products porting for RT-Thread */
  207. /* end of Micrium: Micrium software products porting for RT-Thread */
  208. /* end of system packages */
  209. /* peripheral libraries and drivers */
  210. /* HAL & SDK Drivers */
  211. /* STM32 HAL & SDK Drivers */
  212. /* end of STM32 HAL & SDK Drivers */
  213. /* Infineon HAL Packages */
  214. /* end of Infineon HAL Packages */
  215. /* Kendryte SDK */
  216. /* end of Kendryte SDK */
  217. /* WCH HAL & SDK Drivers */
  218. /* end of WCH HAL & SDK Drivers */
  219. /* AT32 HAL & SDK Drivers */
  220. /* end of AT32 HAL & SDK Drivers */
  221. /* HC32 DDL Drivers */
  222. /* end of HC32 DDL Drivers */
  223. /* NXP HAL & SDK Drivers */
  224. /* end of NXP HAL & SDK Drivers */
  225. /* NUVOTON Drivers */
  226. /* end of NUVOTON Drivers */
  227. /* GD32 Drivers */
  228. /* end of GD32 Drivers */
  229. /* end of HAL & SDK Drivers */
  230. /* sensors drivers */
  231. /* end of sensors drivers */
  232. /* touch drivers */
  233. /* end of touch drivers */
  234. /* end of peripheral libraries and drivers */
  235. /* AI packages */
  236. /* end of AI packages */
  237. /* Signal Processing and Control Algorithm Packages */
  238. /* end of Signal Processing and Control Algorithm Packages */
  239. /* miscellaneous packages */
  240. /* project laboratory */
  241. /* end of project laboratory */
  242. /* samples: kernel and components samples */
  243. /* end of samples: kernel and components samples */
  244. /* entertainment: terminal games and other interesting software packages */
  245. /* end of entertainment: terminal games and other interesting software packages */
  246. /* end of miscellaneous packages */
  247. /* Arduino libraries */
  248. /* Projects and Demos */
  249. /* end of Projects and Demos */
  250. /* Sensors */
  251. /* end of Sensors */
  252. /* Display */
  253. /* end of Display */
  254. /* Timing */
  255. /* end of Timing */
  256. /* Data Processing */
  257. /* end of Data Processing */
  258. /* Data Storage */
  259. /* Communication */
  260. /* end of Communication */
  261. /* Device Control */
  262. /* end of Device Control */
  263. /* Other */
  264. /* end of Other */
  265. /* Signal IO */
  266. /* end of Signal IO */
  267. /* Uncategorized */
  268. /* end of Arduino libraries */
  269. /* end of RT-Thread online packages */
  270. /* Hardware Drivers Config */
  271. #define SOC_CH579M
  272. /* On-chip Peripheral Drivers */
  273. #define BSP_USING_UART
  274. #define BSP_USING_UART1
  275. #define BSP_USING_USBH
  276. #define BSP_USING_ETH
  277. /* end of On-chip Peripheral Drivers */
  278. /* end of Hardware Drivers Config */
  279. #endif