rtconfig.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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 1000
  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. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 512
  18. #define RT_DEBUG
  19. #define RT_DEBUG_COLOR
  20. /* Inter-Thread communication */
  21. #define RT_USING_SEMAPHORE
  22. #define RT_USING_MUTEX
  23. #define RT_USING_EVENT
  24. #define RT_USING_MAILBOX
  25. #define RT_USING_MESSAGEQUEUE
  26. /* end of Inter-Thread communication */
  27. /* Memory Management */
  28. #define RT_USING_MEMPOOL
  29. #define RT_USING_SMALL_MEM
  30. #define RT_USING_HEAP
  31. /* end of Memory Management */
  32. /* Kernel Device Object */
  33. #define RT_USING_DEVICE
  34. #define RT_USING_CONSOLE
  35. #define RT_CONSOLEBUF_SIZE 256
  36. #define RT_CONSOLE_DEVICE_NAME "uart1"
  37. /* end of Kernel Device Object */
  38. #define RT_VER_NUM 0x40003
  39. /* end of RT-Thread Kernel */
  40. #define ARCH_ARM
  41. #define RT_USING_CPU_FFS
  42. #define ARCH_ARM_CORTEX_M
  43. #define ARCH_ARM_CORTEX_M4
  44. /* RT-Thread Components */
  45. #define RT_USING_COMPONENTS_INIT
  46. #define RT_USING_USER_MAIN
  47. #define RT_MAIN_THREAD_STACK_SIZE 2048
  48. #define RT_MAIN_THREAD_PRIORITY 10
  49. /* C++ features */
  50. /* end of C++ features */
  51. /* Command shell */
  52. #define RT_USING_FINSH
  53. #define FINSH_THREAD_NAME "tshell"
  54. #define FINSH_USING_HISTORY
  55. #define FINSH_HISTORY_LINES 5
  56. #define FINSH_USING_SYMTAB
  57. #define FINSH_USING_DESCRIPTION
  58. #define FINSH_THREAD_PRIORITY 20
  59. #define FINSH_THREAD_STACK_SIZE 4096
  60. #define FINSH_CMD_SIZE 80
  61. #define FINSH_USING_MSH
  62. #define FINSH_USING_MSH_DEFAULT
  63. #define FINSH_USING_MSH_ONLY
  64. #define FINSH_ARG_MAX 10
  65. /* end of Command shell */
  66. /* Device virtual file system */
  67. #define RT_USING_DFS
  68. #define DFS_USING_WORKDIR
  69. #define DFS_FILESYSTEMS_MAX 2
  70. #define DFS_FILESYSTEM_TYPES_MAX 2
  71. #define DFS_FD_MAX 16
  72. #define RT_USING_DFS_DEVFS
  73. /* end of Device virtual file system */
  74. /* Device Drivers */
  75. #define RT_USING_DEVICE_IPC
  76. #define RT_PIPE_BUFSZ 2048
  77. #define RT_USING_SYSTEM_WORKQUEUE
  78. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  79. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  80. #define RT_USING_SERIAL
  81. #define RT_SERIAL_RB_BUFSZ 64
  82. #define RT_USING_PIN
  83. #define RT_USING_ADC
  84. #define RT_USING_RTC
  85. #define RTC_SYNC_USING_NTP
  86. #define RTC_NTP_FIRST_SYNC_DELAY 30
  87. #define RTC_NTP_SYNC_PERIOD 3600
  88. #define RT_USING_SPI
  89. #define RT_USING_SFUD
  90. #define RT_SFUD_USING_SFDP
  91. #define RT_SFUD_USING_FLASH_INFO_TABLE
  92. #define RT_SFUD_SPI_MAX_HZ 50000000
  93. #define RT_USING_WDT
  94. /* Using USB */
  95. /* end of Using USB */
  96. /* end of Device Drivers */
  97. /* POSIX layer and C standard library */
  98. #define RT_USING_LIBC
  99. #define RT_USING_POSIX
  100. #define RT_USING_POSIX_TERMIOS
  101. /* end of POSIX layer and C standard library */
  102. /* Network */
  103. /* Socket abstraction layer */
  104. #define RT_USING_SAL
  105. #define SAL_INTERNET_CHECK
  106. /* protocol stack implement */
  107. #define SAL_USING_AT
  108. /* end of protocol stack implement */
  109. #define SAL_USING_POSIX
  110. /* end of Socket abstraction layer */
  111. /* Network interface device */
  112. #define RT_USING_NETDEV
  113. #define NETDEV_USING_IFCONFIG
  114. #define NETDEV_USING_PING
  115. #define NETDEV_USING_NETSTAT
  116. #define NETDEV_USING_AUTO_DEFAULT
  117. #define NETDEV_IPV4 1
  118. #define NETDEV_IPV6 0
  119. /* end of Network interface device */
  120. /* light weight TCP/IP stack */
  121. /* end of light weight TCP/IP stack */
  122. /* AT commands */
  123. #define RT_USING_AT
  124. #define AT_USING_CLIENT
  125. #define AT_CLIENT_NUM_MAX 1
  126. #define AT_USING_SOCKET
  127. #define AT_USING_CLI
  128. #define AT_CMD_MAX_LEN 128
  129. #define AT_SW_VERSION_NUM 0x10301
  130. /* end of AT commands */
  131. /* end of Network */
  132. /* VBUS(Virtual Software BUS) */
  133. /* end of VBUS(Virtual Software BUS) */
  134. /* Utilities */
  135. #define RT_USING_RYM
  136. #define RT_USING_ULOG
  137. #define ULOG_OUTPUT_LVL_D
  138. #define ULOG_OUTPUT_LVL 7
  139. #define ULOG_USING_ISR_LOG
  140. #define ULOG_ASSERT_ENABLE
  141. #define ULOG_LINE_BUF_SIZE 128
  142. /* log format */
  143. #define ULOG_USING_COLOR
  144. #define ULOG_OUTPUT_TIME
  145. #define ULOG_TIME_USING_TIMESTAMP
  146. #define ULOG_OUTPUT_LEVEL
  147. #define ULOG_OUTPUT_TAG
  148. /* end of log format */
  149. #define ULOG_BACKEND_USING_CONSOLE
  150. /* end of Utilities */
  151. /* end of RT-Thread Components */
  152. /* RT-Thread online packages */
  153. /* IoT - internet of things */
  154. #define MQTT_DEBUG
  155. #define PKG_USING_WEBCLIENT
  156. #define WEBCLIENT_NOT_USE_TLS
  157. #define PKG_USING_WEBCLIENT_V220
  158. #define PKG_WEBCLIENT_VER_NUM 0x20200
  159. #define PKG_USING_MYMQTT
  160. #define PKG_USING_MYMQTT_LATEST_VERSION
  161. #define MQTT_MAX_MESSAGE_HANDLERS 1
  162. /* Wi-Fi */
  163. /* Marvell WiFi */
  164. /* end of Marvell WiFi */
  165. /* Wiced WiFi */
  166. /* end of Wiced WiFi */
  167. /* CYW43012 WiFi */
  168. /* end of CYW43012 WiFi */
  169. /* BL808 WiFi */
  170. /* end of BL808 WiFi */
  171. /* CYW43439 WiFi */
  172. /* end of CYW43439 WiFi */
  173. /* end of Wi-Fi */
  174. #define PKG_USING_NETUTILS
  175. #define PKG_NETUTILS_NTP
  176. #define NTP_USING_AUTO_SYNC
  177. #define NTP_AUTO_SYNC_FIRST_DELAY 30
  178. #define NTP_AUTO_SYNC_PERIOD 3600
  179. #define NETUTILS_NTP_HOSTNAME "cn.ntp.org.cn"
  180. #define NETUTILS_NTP_HOSTNAME2 "ntp.rt-thread.org"
  181. #define NETUTILS_NTP_HOSTNAME3 "edu.ntp.org.cn"
  182. #define PKG_USING_NETUTILS_LATEST_VERSION
  183. #define PKG_NETUTILS_VER_NUM 0x99999
  184. #define PKG_USING_AT_DEVICE
  185. #define AT_DEVICE_USING_AIR720
  186. #define AT_DEVICE_AIR720_SOCKET
  187. #define AT_DEVICE_AIR720_SAMPLE
  188. #define AIR720_SAMPLE_POWER_PIN 73
  189. #define AIR720_SAMPLE_STATUS_PIN 60
  190. #define AIR720_SAMPLE_CLIENT_NAME "uart5"
  191. #define AIR720_SAMPLE_RECV_BUFF_LEN 512
  192. #define PKG_USING_AT_DEVICE_V204
  193. #define PKG_AT_DEVICE_VER_NUM 0x20004
  194. #define PKG_USING_WIZNET
  195. #define WIZ_USING_W5500
  196. /* WIZnet device configure */
  197. #define WIZ_SPI_DEVICE "spi30"
  198. #define WIZ_RST_PIN 56
  199. #define WIZ_IRQ_PIN 57
  200. /* end of WIZnet device configure */
  201. #define WIZ_USING_DHCP
  202. #define WIZ_USING_PING
  203. #define PKG_USING_WIZNET_V200
  204. /* IoT Cloud */
  205. /* end of IoT Cloud */
  206. #define PKG_USING_OTA_DOWNLOADER
  207. #define PKG_USING_HTTP_OTA
  208. #define PKG_HTTP_OTA_URL "http://www.yfzhwlw.com/update/qxz_bin/qxz.rbl"
  209. #define PKG_USING_YMODEM_OTA
  210. #define PKG_USING_OTA_DOWNLOADER_LATEST_VERSION
  211. /* end of IoT - internet of things */
  212. /* security packages */
  213. /* end of security packages */
  214. /* language packages */
  215. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  216. #define PKG_USING_CJSON
  217. #define PKG_USING_CJSON_LATEST_VERSION
  218. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  219. /* XML: Extensible Markup Language */
  220. /* end of XML: Extensible Markup Language */
  221. /* end of language packages */
  222. /* multimedia packages */
  223. /* LVGL: powerful and easy-to-use embedded GUI library */
  224. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  225. /* u8g2: a monochrome graphic library */
  226. /* end of u8g2: a monochrome graphic library */
  227. /* end of multimedia packages */
  228. /* tools packages */
  229. #define PKG_USING_EASYFLASH
  230. #define PKG_EASYFLASH_ENV
  231. #define PKG_EASYFLASH_LOG
  232. #define PKG_EASYFLASH_LOG_AREA_SIZE 14680064
  233. #define PKG_EASYFLASH_ERASE_GRAN 4096
  234. #define PKG_EASYFLASH_WRITE_GRAN_8BITS
  235. #define PKG_EASYFLASH_WRITE_GRAN 8
  236. #define PKG_EASYFLASH_START_ADDR 0
  237. #define PKG_EASYFLASH_DEBUG
  238. #define PKG_USING_EASYFLASH_V410
  239. #define PKG_EASYFLASH_VER_NUM 0x40100
  240. /* end of tools packages */
  241. /* system packages */
  242. /* enhanced kernel services */
  243. /* end of enhanced kernel services */
  244. /* acceleration: Assembly language or algorithmic acceleration packages */
  245. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  246. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  247. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  248. /* Micrium: Micrium software products porting for RT-Thread */
  249. /* end of Micrium: Micrium software products porting for RT-Thread */
  250. #define PKG_USING_FAL
  251. #define FAL_DEBUG_CONFIG
  252. #define FAL_DEBUG 1
  253. #define FAL_PART_HAS_TABLE_CFG
  254. #define FAL_USING_SFUD_PORT
  255. #define FAL_USING_NOR_FLASH_DEV_NAME "W25Q128"
  256. #define PKG_USING_FAL_V10000
  257. #define PKG_FAL_VER_NUM 0x10000
  258. #define PKG_USING_SYSWATCH
  259. #define SYSWATCH_EXCEPT_RESOLVE_MODE_2
  260. #define SYSWATCH_EXCEPT_RESOLVE_MODE 2
  261. #define SYSWATCH_EXCEPT_TIMEOUT 60
  262. #define SYSWATCH_EXCEPT_CONFIRM_TMO 15
  263. #define SYSWATCH_EXCEPT_RESUME_DLY 15
  264. #define SYSWATCH_THREAD_PRIO 0
  265. #define SYSWATCH_THREAD_STK_SIZE 512
  266. #define SYSWATCH_THREAD_NAME "syswatch"
  267. #define SYSWATCH_WDT_NAME "wdt"
  268. #define SYSWATCH_WDT_TIMEOUT 5
  269. #define PKG_USING_SYSWATCH_LATEST_VERSION
  270. /* end of system packages */
  271. /* peripheral libraries and drivers */
  272. /* HAL & SDK Drivers */
  273. /* STM32 HAL & SDK Drivers */
  274. /* end of STM32 HAL & SDK Drivers */
  275. /* Infineon HAL Packages */
  276. /* end of Infineon HAL Packages */
  277. /* Kendryte SDK */
  278. /* end of Kendryte SDK */
  279. /* WCH HAL & SDK Drivers */
  280. /* end of WCH HAL & SDK Drivers */
  281. /* end of HAL & SDK Drivers */
  282. /* sensors drivers */
  283. /* end of sensors drivers */
  284. /* touch drivers */
  285. /* end of touch drivers */
  286. #define PKG_USING_SIGNAL_LED
  287. #define PKG_USING_SIGNAL_LED_V130
  288. /* signalLed Options */
  289. /* end of signalLed Options */
  290. /* end of peripheral libraries and drivers */
  291. /* AI packages */
  292. /* end of AI packages */
  293. /* Signal Processing and Control Algorithm Packages */
  294. /* end of Signal Processing and Control Algorithm Packages */
  295. /* miscellaneous packages */
  296. /* project laboratory */
  297. /* end of project laboratory */
  298. /* samples: kernel and components samples */
  299. /* end of samples: kernel and components samples */
  300. /* entertainment: terminal games and other interesting software packages */
  301. /* end of entertainment: terminal games and other interesting software packages */
  302. #define PKG_USING_LWGPS
  303. #define LWGPS_USING_SAMPLES
  304. #define GPS_MODULE_BAUD_RATE 9600
  305. #define LWGPS_CFG_DOUBLE 0
  306. #define LWGPS_CFG_STATUS 0
  307. #define LWGPS_CFG_STATEMENT_GPGGA 1
  308. #define LWGPS_CFG_STATEMENT_GPGSA 0
  309. #define LWGPS_CFG_STATEMENT_GPRMC 1
  310. #define LWGPS_CFG_STATEMENT_GPGSV 1
  311. #define LWGPS_CFG_STATEMENT_GPGSV_SAT_DET 0
  312. #define LWGPS_CFG_STATEMENT_PUBX 0
  313. #define LWGPS_CFG_STATEMENT_PUBX_TIME 0
  314. #define PKG_USING_LWGPS_LATEST_VERSION
  315. /* end of miscellaneous packages */
  316. /* Arduino libraries */
  317. /* Projects and Demos */
  318. /* end of Projects and Demos */
  319. /* Sensors */
  320. /* end of Sensors */
  321. /* Display */
  322. /* end of Display */
  323. /* Timing */
  324. /* end of Timing */
  325. /* Data Processing */
  326. /* end of Data Processing */
  327. /* Data Storage */
  328. /* Communication */
  329. /* end of Communication */
  330. /* Device Control */
  331. /* end of Device Control */
  332. /* Other */
  333. /* end of Other */
  334. /* Signal IO */
  335. /* end of Signal IO */
  336. /* Uncategorized */
  337. /* end of Arduino libraries */
  338. /* end of RT-Thread online packages */
  339. /* samples: kernel and components samples */
  340. /* end of samples: kernel and components samples */
  341. #define RT_STUDIO_BUILT_IN
  342. #endif