rtconfig.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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. #define RT_USING_ULOG
  101. #define ULOG_OUTPUT_LVL_D
  102. #define ULOG_OUTPUT_LVL 7
  103. #define ULOG_ASSERT_ENABLE
  104. #define ULOG_LINE_BUF_SIZE 128
  105. /* log format */
  106. #define ULOG_USING_COLOR
  107. #define ULOG_OUTPUT_TIME
  108. #define ULOG_OUTPUT_LEVEL
  109. #define ULOG_OUTPUT_TAG
  110. /* end of log format */
  111. #define ULOG_BACKEND_USING_CONSOLE
  112. /* end of Utilities */
  113. /* end of RT-Thread Components */
  114. /* RT-Thread online packages */
  115. /* IoT - internet of things */
  116. /* Wi-Fi */
  117. /* Marvell WiFi */
  118. /* end of Marvell WiFi */
  119. /* Wiced WiFi */
  120. /* end of Wiced WiFi */
  121. /* end of Wi-Fi */
  122. /* IoT Cloud */
  123. /* end of IoT Cloud */
  124. #define PKG_USING_OTA_DOWNLOADER
  125. #define PKG_USING_YMODEM_OTA
  126. #define PKG_USING_OTA_DOWNLOADER_LATEST_VERSION
  127. /* end of IoT - internet of things */
  128. /* security packages */
  129. /* end of security packages */
  130. /* language packages */
  131. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  132. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  133. /* XML: Extensible Markup Language */
  134. /* end of XML: Extensible Markup Language */
  135. /* end of language packages */
  136. /* multimedia packages */
  137. /* LVGL: powerful and easy-to-use embedded GUI library */
  138. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  139. /* u8g2: a monochrome graphic library */
  140. /* end of u8g2: a monochrome graphic library */
  141. /* PainterEngine: A cross-platform graphics application framework written in C language */
  142. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  143. /* end of multimedia packages */
  144. /* tools packages */
  145. #define PKG_USING_EASYFLASH
  146. #define PKG_EASYFLASH_ENV
  147. #define PKG_EASYFLASH_LOG
  148. #define PKG_EASYFLASH_LOG_AREA_SIZE 14680064
  149. #define PKG_EASYFLASH_ERASE_GRAN 4096
  150. #define PKG_EASYFLASH_WRITE_GRAN_8BITS
  151. #define PKG_EASYFLASH_WRITE_GRAN 8
  152. #define PKG_EASYFLASH_START_ADDR 0
  153. #define PKG_EASYFLASH_DEBUG
  154. #define PKG_USING_EASYFLASH_V410
  155. #define PKG_EASYFLASH_VER_NUM 0x40100
  156. /* end of tools packages */
  157. /* system packages */
  158. /* enhanced kernel services */
  159. /* end of enhanced kernel services */
  160. /* acceleration: Assembly language or algorithmic acceleration packages */
  161. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  162. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  163. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  164. /* Micrium: Micrium software products porting for RT-Thread */
  165. /* end of Micrium: Micrium software products porting for RT-Thread */
  166. #define PKG_USING_FAL
  167. #define FAL_DEBUG_CONFIG
  168. #define FAL_DEBUG 1
  169. #define FAL_PART_HAS_TABLE_CFG
  170. #define FAL_USING_SFUD_PORT
  171. #define FAL_USING_NOR_FLASH_DEV_NAME "W25Q128"
  172. #define PKG_USING_FAL_V10000
  173. #define PKG_FAL_VER_NUM 0x10000
  174. #define PKG_USING_SYSWATCH
  175. #define SYSWATCH_EXCEPT_RESOLVE_MODE_2
  176. #define SYSWATCH_EXCEPT_RESOLVE_MODE 2
  177. #define SYSWATCH_EXCEPT_TIMEOUT 60
  178. #define SYSWATCH_EXCEPT_CONFIRM_TMO 15
  179. #define SYSWATCH_EXCEPT_RESUME_DLY 15
  180. #define SYSWATCH_THREAD_PRIO 0
  181. #define SYSWATCH_THREAD_STK_SIZE 512
  182. #define SYSWATCH_THREAD_NAME "syswatch"
  183. #define SYSWATCH_WDT_NAME "wdt"
  184. #define SYSWATCH_WDT_TIMEOUT 5
  185. #define PKG_USING_SYSWATCH_LATEST_VERSION
  186. /* end of system packages */
  187. /* peripheral libraries and drivers */
  188. #define PKG_USING_SIGNAL_LED
  189. #define PKG_USING_SIGNAL_LED_V130
  190. /* signalLed Options */
  191. /* end of signalLed Options */
  192. /* Kendryte SDK */
  193. /* end of Kendryte SDK */
  194. /* end of peripheral libraries and drivers */
  195. /* AI packages */
  196. /* end of AI packages */
  197. /* miscellaneous packages */
  198. /* project laboratory */
  199. /* end of project laboratory */
  200. /* samples: kernel and components samples */
  201. /* end of samples: kernel and components samples */
  202. /* entertainment: terminal games and other interesting software packages */
  203. /* end of entertainment: terminal games and other interesting software packages */
  204. /* end of miscellaneous packages */
  205. /* Arduino libraries */
  206. /* Projects */
  207. /* end of Projects */
  208. /* Sensors */
  209. /* end of Sensors */
  210. /* Display */
  211. /* end of Display */
  212. /* Timing */
  213. /* end of Timing */
  214. /* Data Processing */
  215. /* end of Data Processing */
  216. /* Data Storage */
  217. /* Communication */
  218. /* Device Control */
  219. /* end of Device Control */
  220. /* Other */
  221. /* Signal IO */
  222. /* end of Signal IO */
  223. /* Uncategorized */
  224. /* end of Arduino libraries */
  225. /* end of RT-Thread online packages */
  226. /* samples: kernel and components samples */
  227. /* end of samples: kernel and components samples */
  228. #define RT_STUDIO_BUILT_IN
  229. #endif