rtconfig.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  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 RT_USING_OVERFLOW_CHECK
  41. #define RT_USING_HOOK
  42. #define RT_HOOK_USING_FUNC_PTR
  43. #define RT_USING_IDLE_HOOK
  44. #define RT_IDLE_HOOK_LIST_SIZE 4
  45. #define IDLE_THREAD_STACK_SIZE 256
  46. #define RT_USING_TIMER_SOFT
  47. #define RT_TIMER_THREAD_PRIO 4
  48. #define RT_TIMER_THREAD_STACK_SIZE 512
  49. /* kservice options */
  50. /* end of kservice options */
  51. #define RT_USING_DEBUG
  52. #define RT_DEBUGING_ASSERT
  53. #define RT_DEBUGING_COLOR
  54. #define RT_DEBUGING_CONTEXT
  55. /* Inter-Thread communication */
  56. #define RT_USING_SEMAPHORE
  57. #define RT_USING_MUTEX
  58. #define RT_USING_EVENT
  59. #define RT_USING_MAILBOX
  60. #define RT_USING_MESSAGEQUEUE
  61. /* end of Inter-Thread communication */
  62. /* Memory Management */
  63. #define RT_USING_MEMPOOL
  64. #define RT_USING_SMALL_MEM
  65. #define RT_USING_SMALL_MEM_AS_HEAP
  66. #define RT_USING_HEAP
  67. /* end of Memory Management */
  68. #define RT_USING_DEVICE
  69. #define RT_USING_CONSOLE
  70. #define RT_CONSOLEBUF_SIZE 128
  71. #define RT_CONSOLE_DEVICE_NAME "uart0"
  72. #define RT_VER_NUM 0x50201
  73. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  74. /* end of RT-Thread Kernel */
  75. /* RT-Thread Components */
  76. #define RT_USING_COMPONENTS_INIT
  77. #define RT_USING_USER_MAIN
  78. #define RT_MAIN_THREAD_STACK_SIZE 2048
  79. #define RT_MAIN_THREAD_PRIORITY 10
  80. #define RT_USING_MSH
  81. #define RT_USING_FINSH
  82. #define FINSH_USING_MSH
  83. #define FINSH_THREAD_NAME "tshell"
  84. #define FINSH_THREAD_PRIORITY 20
  85. #define FINSH_THREAD_STACK_SIZE 4096
  86. #define FINSH_USING_HISTORY
  87. #define FINSH_HISTORY_LINES 5
  88. #define FINSH_USING_SYMTAB
  89. #define FINSH_CMD_SIZE 80
  90. #define MSH_USING_BUILT_IN_COMMANDS
  91. #define FINSH_USING_DESCRIPTION
  92. #define FINSH_ARG_MAX 10
  93. #define FINSH_USING_OPTION_COMPLETION
  94. /* DFS: device virtual file system */
  95. #define RT_USING_DFS
  96. #define DFS_USING_POSIX
  97. #define DFS_USING_WORKDIR
  98. #define DFS_FD_MAX 16
  99. #define RT_USING_DFS_V1
  100. #define DFS_FILESYSTEMS_MAX 4
  101. #define DFS_FILESYSTEM_TYPES_MAX 4
  102. #define RT_USING_DFS_DEVFS
  103. /* end of DFS: device virtual file system */
  104. /* Device Drivers */
  105. #define RT_USING_DEVICE_IPC
  106. #define RT_UNAMED_PIPE_NUMBER 64
  107. #define RT_USING_SYSTEM_WORKQUEUE
  108. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  109. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  110. #define RT_USING_SERIAL
  111. #define RT_USING_SERIAL_V1
  112. #define RT_SERIAL_USING_DMA
  113. #define RT_SERIAL_RB_BUFSZ 64
  114. #define RT_USING_I2C
  115. #define RT_USING_I2C_BITOPS
  116. #define RT_USING_PWM
  117. #define RT_USING_RTC
  118. #define RT_USING_SOFT_RTC
  119. #define RT_USING_SPI
  120. #define RT_USING_WDT
  121. #define RT_USING_HWCRYPTO
  122. #define RT_HWCRYPTO_DEFAULT_NAME "hwcryto"
  123. #define RT_HWCRYPTO_IV_MAX_SIZE 16
  124. #define RT_HWCRYPTO_KEYBIT_MAX_SIZE 256
  125. #define RT_HWCRYPTO_USING_AES
  126. #define RT_HWCRYPTO_USING_AES_ECB
  127. #define RT_HWCRYPTO_USING_AES_CBC
  128. #define RT_HWCRYPTO_USING_MD5
  129. #define RT_HWCRYPTO_USING_SHA1
  130. #define RT_HWCRYPTO_USING_RNG
  131. #define RT_HWCRYPTO_USING_CRC
  132. #define RT_HWCRYPTO_USING_CRC_07
  133. #define RT_HWCRYPTO_USING_CRC_8005
  134. #define RT_HWCRYPTO_USING_CRC_1021
  135. #define RT_HWCRYPTO_USING_CRC_04C11DB7
  136. #define RT_HWCRYPTO_USING_BIGNUM
  137. #define RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
  138. #define RT_HWCRYPTO_USING_BIGNUM_MULMOD
  139. #define RT_USING_WIFI
  140. #define RT_WLAN_DEVICE_STA_NAME "wlan0"
  141. #define RT_WLAN_DEVICE_AP_NAME "wlan1"
  142. #define RT_WLAN_SSID_MAX_LENGTH 32
  143. #define RT_WLAN_PASSWORD_MAX_LENGTH 32
  144. #define RT_WLAN_DEV_EVENT_NUM 2
  145. #define RT_WLAN_MANAGE_ENABLE
  146. #define RT_WLAN_SCAN_WAIT_MS 10000
  147. #define RT_WLAN_CONNECT_WAIT_MS 10000
  148. #define RT_WLAN_SCAN_SORT
  149. #define RT_WLAN_MSH_CMD_ENABLE
  150. #define RT_WLAN_JOIN_SCAN_BY_MGNT
  151. #define RT_WLAN_AUTO_CONNECT_ENABLE
  152. #define AUTO_CONNECTION_PERIOD_MS 2000
  153. #define RT_WLAN_CFG_ENABLE
  154. #define RT_WLAN_CFG_INFO_MAX 3
  155. #define RT_WLAN_PROT_ENABLE
  156. #define RT_WLAN_PROT_NAME_LEN 8
  157. #define RT_WLAN_PROT_MAX 2
  158. #define RT_WLAN_DEFAULT_PROT "lwip"
  159. #define RT_WLAN_PROT_LWIP_ENABLE
  160. #define RT_WLAN_PROT_LWIP_NAME "lwip"
  161. #define RT_WLAN_WORK_THREAD_ENABLE
  162. #define RT_WLAN_WORKQUEUE_THREAD_NAME "wlan_job"
  163. #define RT_WLAN_WORKQUEUE_THREAD_SIZE 2048
  164. #define RT_WLAN_WORKQUEUE_THREAD_PRIO 22
  165. #define RT_USING_PIN
  166. #define RT_USING_HWTIMER
  167. /* end of Device Drivers */
  168. /* C/C++ and POSIX layer */
  169. /* ISO-ANSI C layer */
  170. /* Timezone and Daylight Saving Time */
  171. #define RT_LIBC_USING_LIGHT_TZ_DST
  172. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  173. #define RT_LIBC_TZ_DEFAULT_MIN 0
  174. #define RT_LIBC_TZ_DEFAULT_SEC 0
  175. /* end of Timezone and Daylight Saving Time */
  176. /* end of ISO-ANSI C layer */
  177. /* POSIX (Portable Operating System Interface) layer */
  178. #define RT_USING_POSIX_FS
  179. #define RT_USING_POSIX_POLL
  180. #define RT_USING_POSIX_SELECT
  181. /* Interprocess Communication (IPC) */
  182. /* Socket is in the 'Network' category */
  183. /* end of Interprocess Communication (IPC) */
  184. /* end of POSIX (Portable Operating System Interface) layer */
  185. /* end of C/C++ and POSIX layer */
  186. /* Network */
  187. #define RT_USING_SAL
  188. #define SAL_INTERNET_CHECK
  189. #define SOCKET_TABLE_STEP_LEN 4
  190. /* Docking with protocol stacks */
  191. #define SAL_USING_LWIP
  192. /* end of Docking with protocol stacks */
  193. #define SAL_USING_POSIX
  194. #define RT_USING_NETDEV
  195. #define NETDEV_USING_IFCONFIG
  196. #define NETDEV_USING_PING
  197. #define NETDEV_USING_NETSTAT
  198. #define NETDEV_USING_AUTO_DEFAULT
  199. #define NETDEV_IPV4 1
  200. #define NETDEV_IPV6 0
  201. #define RT_USING_LWIP
  202. #define RT_USING_LWIP203
  203. #define RT_USING_LWIP_VER_NUM 0x20003
  204. #define RT_LWIP_MEM_ALIGNMENT 4
  205. #define RT_LWIP_IGMP
  206. #define RT_LWIP_ICMP
  207. #define RT_LWIP_DNS
  208. #define RT_LWIP_DHCP
  209. #define IP_SOF_BROADCAST 1
  210. #define IP_SOF_BROADCAST_RECV 1
  211. /* Static IPv4 Address */
  212. #define RT_LWIP_IPADDR "192.168.1.30"
  213. #define RT_LWIP_GWADDR "192.168.1.1"
  214. #define RT_LWIP_MSKADDR "255.255.255.0"
  215. /* end of Static IPv4 Address */
  216. #define RT_LWIP_UDP
  217. #define RT_LWIP_TCP
  218. #define RT_LWIP_RAW
  219. #define RT_MEMP_NUM_NETCONN 8
  220. #define RT_LWIP_PBUF_NUM 16
  221. #define RT_LWIP_RAW_PCB_NUM 4
  222. #define RT_LWIP_UDP_PCB_NUM 4
  223. #define RT_LWIP_TCP_PCB_NUM 4
  224. #define RT_LWIP_TCP_SEG_NUM 40
  225. #define RT_LWIP_TCP_SND_BUF 10240
  226. #define RT_LWIP_TCP_WND 10240
  227. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  228. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  229. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  230. #define LWIP_NO_RX_THREAD
  231. #define LWIP_NO_TX_THREAD
  232. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  233. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  234. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  235. #define LWIP_NETIF_STATUS_CALLBACK 1
  236. #define LWIP_NETIF_LINK_CALLBACK 1
  237. #define RT_LWIP_NETIF_NAMESIZE 6
  238. #define SO_REUSE 1
  239. #define LWIP_SO_RCVTIMEO 1
  240. #define LWIP_SO_SNDTIMEO 1
  241. #define LWIP_SO_RCVBUF 1
  242. #define LWIP_SO_LINGER 0
  243. #define LWIP_NETIF_LOOPBACK 0
  244. #define RT_LWIP_USING_PING
  245. #define LWIP_USING_DHCPD
  246. #define DHCPD_SERVER_IP "192.168.169.1"
  247. /* end of Network */
  248. /* Memory protection */
  249. /* end of Memory protection */
  250. /* Utilities */
  251. #define RT_USING_ULOG
  252. #define ULOG_OUTPUT_LVL_I
  253. #define ULOG_OUTPUT_LVL 6
  254. #define ULOG_USING_ISR_LOG
  255. #define ULOG_ASSERT_ENABLE
  256. #define ULOG_LINE_BUF_SIZE 128
  257. /* log format */
  258. #define ULOG_USING_COLOR
  259. #define ULOG_OUTPUT_TIME
  260. #define ULOG_OUTPUT_LEVEL
  261. #define ULOG_OUTPUT_TAG
  262. /* end of log format */
  263. #define ULOG_BACKEND_USING_CONSOLE
  264. /* end of Utilities */
  265. /* Using USB legacy version */
  266. /* end of Using USB legacy version */
  267. /* end of RT-Thread Components */
  268. /* RT-Thread Utestcases */
  269. /* end of RT-Thread Utestcases */
  270. /* RT-Thread online packages */
  271. /* IoT - internet of things */
  272. /* Wi-Fi */
  273. /* Marvell WiFi */
  274. /* end of Marvell WiFi */
  275. /* Wiced WiFi */
  276. /* end of Wiced WiFi */
  277. /* CYW43012 WiFi */
  278. /* end of CYW43012 WiFi */
  279. /* BL808 WiFi */
  280. /* end of BL808 WiFi */
  281. /* CYW43439 WiFi */
  282. /* end of CYW43439 WiFi */
  283. /* end of Wi-Fi */
  284. #define PKG_USING_NETUTILS
  285. #define PKG_NETUTILS_NTP
  286. #define NTP_USING_AUTO_SYNC
  287. #define NTP_AUTO_SYNC_FIRST_DELAY 30
  288. #define NTP_AUTO_SYNC_PERIOD 3600
  289. #define NETUTILS_NTP_HOSTNAME "cn.ntp.org.cn"
  290. #define NETUTILS_NTP_HOSTNAME2 "ntp.rt-thread.org"
  291. #define NETUTILS_NTP_HOSTNAME3 "edu.ntp.org.cn"
  292. #define PKG_USING_NETUTILS_LATEST_VERSION
  293. #define PKG_NETUTILS_VER_NUM 0x99999
  294. /* IoT Cloud */
  295. /* end of IoT Cloud */
  296. /* end of IoT - internet of things */
  297. /* security packages */
  298. /* end of security packages */
  299. /* language packages */
  300. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  301. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  302. /* XML: Extensible Markup Language */
  303. /* end of XML: Extensible Markup Language */
  304. /* end of language packages */
  305. /* multimedia packages */
  306. /* LVGL: powerful and easy-to-use embedded GUI library */
  307. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  308. /* u8g2: a monochrome graphic library */
  309. /* end of u8g2: a monochrome graphic library */
  310. /* end of multimedia packages */
  311. /* tools packages */
  312. /* end of tools packages */
  313. /* system packages */
  314. /* enhanced kernel services */
  315. /* end of enhanced kernel services */
  316. /* acceleration: Assembly language or algorithmic acceleration packages */
  317. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  318. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  319. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  320. /* Micrium: Micrium software products porting for RT-Thread */
  321. /* end of Micrium: Micrium software products porting for RT-Thread */
  322. /* end of system packages */
  323. /* peripheral libraries and drivers */
  324. /* HAL & SDK Drivers */
  325. /* STM32 HAL & SDK Drivers */
  326. /* end of STM32 HAL & SDK Drivers */
  327. /* Infineon HAL Packages */
  328. /* end of Infineon HAL Packages */
  329. /* Kendryte SDK */
  330. /* end of Kendryte SDK */
  331. /* WCH HAL & SDK Drivers */
  332. /* end of WCH HAL & SDK Drivers */
  333. /* AT32 HAL & SDK Drivers */
  334. /* end of AT32 HAL & SDK Drivers */
  335. /* HC32 DDL Drivers */
  336. /* end of HC32 DDL Drivers */
  337. /* NXP HAL & SDK Drivers */
  338. /* end of NXP HAL & SDK Drivers */
  339. /* NUVOTON Drivers */
  340. /* end of NUVOTON Drivers */
  341. /* GD32 Drivers */
  342. /* end of GD32 Drivers */
  343. /* end of HAL & SDK Drivers */
  344. /* sensors drivers */
  345. /* end of sensors drivers */
  346. /* touch drivers */
  347. /* end of touch drivers */
  348. #define PKG_USING_WM_LIBRARIES
  349. #define PKG_USING_WM_LIBRARIES_LATEST_VERSION
  350. /* end of peripheral libraries and drivers */
  351. /* AI packages */
  352. /* end of AI packages */
  353. /* Signal Processing and Control Algorithm Packages */
  354. /* end of Signal Processing and Control Algorithm Packages */
  355. /* miscellaneous packages */
  356. /* project laboratory */
  357. /* end of project laboratory */
  358. /* samples: kernel and components samples */
  359. /* end of samples: kernel and components samples */
  360. /* entertainment: terminal games and other interesting software packages */
  361. /* end of entertainment: terminal games and other interesting software packages */
  362. /* end of miscellaneous packages */
  363. /* Arduino libraries */
  364. /* Projects and Demos */
  365. /* end of Projects and Demos */
  366. /* Sensors */
  367. /* end of Sensors */
  368. /* Display */
  369. /* end of Display */
  370. /* Timing */
  371. /* end of Timing */
  372. /* Data Processing */
  373. /* end of Data Processing */
  374. /* Data Storage */
  375. /* Communication */
  376. /* end of Communication */
  377. /* Device Control */
  378. /* end of Device Control */
  379. /* Other */
  380. /* end of Other */
  381. /* Signal IO */
  382. /* end of Signal IO */
  383. /* Uncategorized */
  384. /* end of Arduino libraries */
  385. /* end of RT-Thread online packages */
  386. #define BSP_USING_WM_LIBRARIES
  387. /* W60x Device config */
  388. #define SOC_W600_A8xx
  389. #define W600_EV_BOARD
  390. /* end of W60x Device config */
  391. /* On-chip Peripheral Drivers */
  392. #define BSP_USING_UART
  393. #define BSP_USING_UART0
  394. #define BSP_USING_PIN
  395. #define BSP_USING_WIFI
  396. /* end of On-chip Peripheral Drivers */
  397. /* External Libraries */
  398. #define WM_USING_ONESHOT
  399. /* end of External Libraries */
  400. #define SOC_W60X
  401. #endif