rtconfig.h 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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. /* end of Device virtual file system */
  68. /* Device Drivers */
  69. #define RT_USING_DEVICE_IPC
  70. #define RT_PIPE_BUFSZ 512
  71. #define RT_USING_SERIAL
  72. #define RT_SERIAL_RB_BUFSZ 64
  73. #define RT_USING_PIN
  74. #define RT_USING_SPI
  75. #define RT_USING_SFUD
  76. #define RT_SFUD_USING_SFDP
  77. #define RT_SFUD_USING_FLASH_INFO_TABLE
  78. #define RT_SFUD_SPI_MAX_HZ 50000000
  79. #define RT_USING_WDT
  80. /* Using USB */
  81. /* end of Using USB */
  82. /* end of Device Drivers */
  83. /* POSIX layer and C standard library */
  84. #define RT_USING_LIBC
  85. /* end of POSIX layer and C standard library */
  86. /* Network */
  87. /* Socket abstraction layer */
  88. /* end of Socket abstraction layer */
  89. /* Network interface device */
  90. /* end of Network interface device */
  91. /* light weight TCP/IP stack */
  92. /* end of light weight TCP/IP stack */
  93. /* AT commands */
  94. /* end of AT commands */
  95. /* end of Network */
  96. /* VBUS(Virtual Software BUS) */
  97. /* end of VBUS(Virtual Software BUS) */
  98. /* Utilities */
  99. #define RT_USING_RYM
  100. /* end of Utilities */
  101. /* end of RT-Thread Components */
  102. /* RT-Thread online packages */
  103. /* IoT - internet of things */
  104. /* Wi-Fi */
  105. /* Marvell WiFi */
  106. /* end of Marvell WiFi */
  107. /* Wiced WiFi */
  108. /* end of Wiced WiFi */
  109. /* CYW43012 WiFi */
  110. /* end of CYW43012 WiFi */
  111. /* BL808 WiFi */
  112. /* end of BL808 WiFi */
  113. /* CYW43439 WiFi */
  114. /* end of CYW43439 WiFi */
  115. /* end of Wi-Fi */
  116. /* IoT Cloud */
  117. /* end of IoT Cloud */
  118. /* end of IoT - internet of things */
  119. /* security packages */
  120. /* end of security packages */
  121. /* language packages */
  122. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  123. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  124. /* XML: Extensible Markup Language */
  125. /* end of XML: Extensible Markup Language */
  126. /* end of language packages */
  127. /* multimedia packages */
  128. /* LVGL: powerful and easy-to-use embedded GUI library */
  129. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  130. /* u8g2: a monochrome graphic library */
  131. /* end of u8g2: a monochrome graphic library */
  132. /* end of multimedia packages */
  133. /* tools packages */
  134. #define PKG_USING_EASYFLASH
  135. #define PKG_EASYFLASH_ENV
  136. #define PKG_EASYFLASH_LOG
  137. #define PKG_EASYFLASH_LOG_AREA_SIZE 0
  138. #define PKG_EASYFLASH_ERASE_GRAN 4096
  139. #define PKG_EASYFLASH_WRITE_GRAN_1BIT
  140. #define PKG_EASYFLASH_WRITE_GRAN 1
  141. #define PKG_EASYFLASH_START_ADDR 0
  142. #define PKG_USING_EASYFLASH_V410
  143. #define PKG_EASYFLASH_VER_NUM 0x40100
  144. /* end of tools packages */
  145. /* system packages */
  146. /* enhanced kernel services */
  147. /* end of enhanced kernel services */
  148. /* acceleration: Assembly language or algorithmic acceleration packages */
  149. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  150. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  151. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  152. /* Micrium: Micrium software products porting for RT-Thread */
  153. /* end of Micrium: Micrium software products porting for RT-Thread */
  154. #define PKG_USING_FAL
  155. #define FAL_DEBUG_CONFIG
  156. #define FAL_DEBUG 1
  157. #define FAL_PART_HAS_TABLE_CFG
  158. #define FAL_USING_SFUD_PORT
  159. #define FAL_USING_NOR_FLASH_DEV_NAME "norflash0"
  160. #define PKG_USING_FAL_V10000
  161. #define PKG_FAL_VER_NUM 0x10000
  162. #define PKG_USING_SYSWATCH
  163. #define SYSWATCH_EXCEPT_RESOLVE_MODE_2
  164. #define SYSWATCH_EXCEPT_RESOLVE_MODE 2
  165. #define SYSWATCH_EXCEPT_TIMEOUT 60
  166. #define SYSWATCH_EXCEPT_CONFIRM_TMO 15
  167. #define SYSWATCH_EXCEPT_RESUME_DLY 15
  168. #define SYSWATCH_THREAD_PRIO 0
  169. #define SYSWATCH_THREAD_STK_SIZE 1024
  170. #define SYSWATCH_THREAD_NAME "syswatch"
  171. #define SYSWATCH_WDT_NAME "wdt"
  172. #define SYSWATCH_WDT_TIMEOUT 5
  173. #define PKG_USING_SYSWATCH_LATEST_VERSION
  174. #define PKG_USING_QBOOT
  175. #define QBOOT_APP_PART_NAME "app"
  176. #define QBOOT_DOWNLOAD_PART_NAME "firmware"
  177. #define QBOOT_FACTORY_PART_NAME "backup"
  178. #define QBOOT_USING_QUICKLZ
  179. #define QBOOT_USING_SYSWATCH
  180. #define QBOOT_USING_STATUS_LED
  181. #define QBOOT_STATUS_LED_PIN 32
  182. #define QBOOT_STATUS_LED_LEVEL 0
  183. #define QBOOT_THREAD_STACK_SIZE 4096
  184. #define QBOOT_THREAD_PRIO 5
  185. #define PKG_USING_QBOOT_LATEST_VERSION
  186. /* end of system packages */
  187. /* peripheral libraries and drivers */
  188. /* HAL & SDK Drivers */
  189. /* STM32 HAL & SDK Drivers */
  190. /* end of STM32 HAL & SDK Drivers */
  191. /* Infineon HAL Packages */
  192. /* end of Infineon HAL Packages */
  193. /* Kendryte SDK */
  194. /* end of Kendryte SDK */
  195. /* WCH HAL & SDK Drivers */
  196. /* end of WCH HAL & SDK Drivers */
  197. /* end of HAL & SDK Drivers */
  198. /* sensors drivers */
  199. /* end of sensors drivers */
  200. /* touch drivers */
  201. /* end of touch drivers */
  202. #define PKG_USING_QLED
  203. #define QLED_TOTAL 5
  204. #define QLED_TIME_UNIT_MS 10
  205. #define QLED_THREAD_NAME "qled"
  206. #define QLED_THREAD_STACK_SIZE 512
  207. #define QLED_THREAD_PRIO 3
  208. #define PKG_USING_QLED_LATEST_VERSION
  209. /* end of peripheral libraries and drivers */
  210. /* AI packages */
  211. /* end of AI packages */
  212. /* Signal Processing and Control Algorithm Packages */
  213. /* end of Signal Processing and Control Algorithm Packages */
  214. /* miscellaneous packages */
  215. /* project laboratory */
  216. /* end of project laboratory */
  217. /* samples: kernel and components samples */
  218. /* end of samples: kernel and components samples */
  219. /* entertainment: terminal games and other interesting software packages */
  220. /* end of entertainment: terminal games and other interesting software packages */
  221. #define PKG_USING_QUICKLZ
  222. #define QLZ_COMPRESSION_LEVEL 3
  223. #define PKG_USING_QUICKLZ_V101
  224. #define PKG_USING_CRCLIB
  225. #define CRCLIB_USING_CRC8
  226. #define CRC8_USING_CONST_TABLE
  227. #define CRC8_POLY_8C
  228. #define CRC8_POLY 140
  229. #define CRCLIB_USING_CRC16
  230. #define CRC16_USING_CONST_TABLE
  231. #define CRC16_POLY_A001
  232. #define CRC16_POLY 40961
  233. #define CRCLIB_USING_CRC32
  234. #define CRC32_USING_CONST_TABLE
  235. #define CRC32_POLY_EDB88320
  236. #define CRC32_POLY 3988292384
  237. #define PKG_USING_CRCLIB_V102
  238. /* end of miscellaneous packages */
  239. /* Arduino libraries */
  240. /* Projects and Demos */
  241. /* end of Projects and Demos */
  242. /* Sensors */
  243. /* end of Sensors */
  244. /* Display */
  245. /* end of Display */
  246. /* Timing */
  247. /* end of Timing */
  248. /* Data Processing */
  249. /* end of Data Processing */
  250. /* Data Storage */
  251. /* Communication */
  252. /* end of Communication */
  253. /* Device Control */
  254. /* end of Device Control */
  255. /* Other */
  256. /* end of Other */
  257. /* Signal IO */
  258. /* end of Signal IO */
  259. /* Uncategorized */
  260. /* end of Arduino libraries */
  261. /* end of RT-Thread online packages */
  262. /* samples: kernel and components samples */
  263. /* end of samples: kernel and components samples */
  264. #define RT_STUDIO_BUILT_IN
  265. #endif