rtconfig.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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 1024
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 256
  18. /* Inter-Thread communication */
  19. #define RT_USING_SEMAPHORE
  20. #define RT_USING_MUTEX
  21. #define RT_USING_EVENT
  22. #define RT_USING_MESSAGEQUEUE
  23. #define RT_USING_SIGNALS
  24. /* end of Inter-Thread communication */
  25. /* Memory Management */
  26. #define RT_USING_MEMPOOL
  27. #define RT_USING_SMALL_MEM
  28. #define RT_USING_MEMTRACE
  29. #define RT_USING_HEAP
  30. /* end of Memory Management */
  31. /* Kernel Device Object */
  32. #define RT_USING_DEVICE
  33. #define RT_USING_CONSOLE
  34. #define RT_CONSOLEBUF_SIZE 1024
  35. #define RT_CONSOLE_DEVICE_NAME "uart1"
  36. /* end of Kernel Device Object */
  37. #define RT_VER_NUM 0x40002
  38. /* end of RT-Thread Kernel */
  39. #define ARCH_ARM
  40. #define RT_USING_CPU_FFS
  41. #define ARCH_ARM_CORTEX_M
  42. #define ARCH_ARM_CORTEX_M3
  43. /* RT-Thread Components */
  44. #define RT_USING_COMPONENTS_INIT
  45. #define RT_USING_USER_MAIN
  46. #define RT_MAIN_THREAD_STACK_SIZE 2048
  47. #define RT_MAIN_THREAD_PRIORITY 10
  48. /* C++ features */
  49. /* end of C++ features */
  50. /* Command shell */
  51. #define RT_USING_FINSH
  52. #define FINSH_THREAD_NAME "tshell"
  53. #define FINSH_USING_SYMTAB
  54. #define FINSH_USING_DESCRIPTION
  55. #define FINSH_THREAD_PRIORITY 20
  56. #define FINSH_THREAD_STACK_SIZE 2048
  57. #define FINSH_CMD_SIZE 80
  58. #define FINSH_USING_MSH
  59. #define FINSH_USING_MSH_DEFAULT
  60. #define FINSH_ARG_MAX 10
  61. /* end of Command shell */
  62. /* Device virtual file system */
  63. /* end of Device virtual file system */
  64. /* Device Drivers */
  65. #define RT_USING_DEVICE_IPC
  66. #define RT_PIPE_BUFSZ 512
  67. #define RT_USING_SERIAL
  68. #define RT_SERIAL_USING_DMA
  69. #define RT_SERIAL_RB_BUFSZ 512
  70. #define RT_USING_HWTIMER
  71. #define RT_USING_I2C
  72. #define RT_USING_I2C_BITOPS
  73. #define RT_USING_PIN
  74. #define RT_USING_ADC
  75. #define RT_USING_PWM
  76. #define RT_USING_RTC
  77. #define RT_USING_SPI
  78. #define RT_USING_SFUD
  79. #define RT_SFUD_USING_SFDP
  80. #define RT_SFUD_USING_FLASH_INFO_TABLE
  81. #define RT_SFUD_SPI_MAX_HZ 24000000
  82. #define RT_USING_WDT
  83. /* Using USB */
  84. /* end of Using USB */
  85. /* end of Device Drivers */
  86. /* POSIX layer and C standard library */
  87. #define RT_USING_LIBC
  88. /* end of POSIX layer and C standard library */
  89. /* Network */
  90. /* Socket abstraction layer */
  91. /* end of Socket abstraction layer */
  92. /* Network interface device */
  93. /* end of Network interface device */
  94. /* light weight TCP/IP stack */
  95. /* end of light weight TCP/IP stack */
  96. /* AT commands */
  97. /* end of AT commands */
  98. /* end of Network */
  99. /* VBUS(Virtual Software BUS) */
  100. /* end of VBUS(Virtual Software BUS) */
  101. /* Utilities */
  102. #define RT_USING_RYM
  103. /* end of Utilities */
  104. /* end of RT-Thread Components */
  105. /* RT-Thread online packages */
  106. /* IoT - internet of things */
  107. #define PKG_USING_FREEMODBUS
  108. #define PKG_MODBUS_MASTER
  109. /* advanced configuration */
  110. #define RT_M_DISCRETE_INPUT_START 0
  111. #define RT_M_DISCRETE_INPUT_NDISCRETES 16
  112. #define RT_M_COIL_START 0
  113. #define RT_M_COIL_NCOILS 64
  114. #define RT_M_REG_INPUT_START 0
  115. #define RT_M_REG_INPUT_NREGS 10
  116. #define RT_M_REG_HOLDING_START 0
  117. #define RT_M_REG_HOLDING_NREGS 10
  118. #define RT_M_HD_RESERVE 0
  119. #define RT_M_IN_RESERVE 4
  120. #define RT_M_CO_RESERVE 0
  121. #define RT_M_DI_RESERVE 4
  122. /* end of advanced configuration */
  123. #define PKG_MODBUS_MASTER_RTU
  124. #define PKG_MODBUS_MASTER_SAMPLE
  125. #define MB_SAMPLE_TEST_SLAVE_ADDR 1
  126. #define MB_MASTER_USING_PORT_NUM 5
  127. #define MB_MASTER_USING_PORT_BAUDRATE 9600
  128. #define PKG_USING_FREEMODBUS_LATEST_VERSION
  129. /* Wi-Fi */
  130. /* Marvell WiFi */
  131. /* end of Marvell WiFi */
  132. /* Wiced WiFi */
  133. /* end of Wiced WiFi */
  134. /* CYW43012 WiFi */
  135. /* end of CYW43012 WiFi */
  136. /* BL808 WiFi */
  137. /* end of BL808 WiFi */
  138. /* CYW43439 WiFi */
  139. /* end of CYW43439 WiFi */
  140. /* end of Wi-Fi */
  141. /* IoT Cloud */
  142. /* end of IoT Cloud */
  143. #define PKG_USING_OTA_DOWNLOADER
  144. #define PKG_USING_YMODEM_OTA
  145. #define PKG_USING_OTA_DOWNLOADER_LATEST_VERSION
  146. /* end of IoT - internet of things */
  147. /* security packages */
  148. /* end of security packages */
  149. /* language packages */
  150. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  151. #define PKG_USING_CJSON
  152. #define PKG_USING_CJSON_V159
  153. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  154. /* XML: Extensible Markup Language */
  155. /* end of XML: Extensible Markup Language */
  156. /* end of language packages */
  157. /* multimedia packages */
  158. /* LVGL: powerful and easy-to-use embedded GUI library */
  159. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  160. /* u8g2: a monochrome graphic library */
  161. /* end of u8g2: a monochrome graphic library */
  162. /* end of multimedia packages */
  163. /* tools packages */
  164. #define PKG_USING_EASYFLASH
  165. #define PKG_EASYFLASH_ENV
  166. #define PKG_EASYFLASH_LOG
  167. #define PKG_EASYFLASH_LOG_AREA_SIZE 8192
  168. #define PKG_EASYFLASH_ERASE_GRAN 4096
  169. #define PKG_EASYFLASH_WRITE_GRAN_32BITS
  170. #define PKG_EASYFLASH_WRITE_GRAN 32
  171. #define PKG_EASYFLASH_START_ADDR 0
  172. #define PKG_EASYFLASH_DEBUG
  173. #define PKG_USING_EASYFLASH_LATEST_VERSION
  174. #define PKG_EASYFLASH_VER_NUM 0x99999
  175. /* end of tools packages */
  176. /* system packages */
  177. /* enhanced kernel services */
  178. /* end of enhanced kernel services */
  179. /* acceleration: Assembly language or algorithmic acceleration packages */
  180. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  181. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  182. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  183. /* Micrium: Micrium software products porting for RT-Thread */
  184. /* end of Micrium: Micrium software products porting for RT-Thread */
  185. #define PKG_USING_FAL
  186. #define FAL_DEBUG_CONFIG
  187. #define FAL_DEBUG 1
  188. #define FAL_PART_HAS_TABLE_CFG
  189. #define FAL_USING_SFUD_PORT
  190. #define FAL_USING_NOR_FLASH_DEV_NAME "MYFLASH16"
  191. #define PKG_USING_FAL_LATEST_VERSION
  192. #define PKG_FAL_VER_NUM 0x99999
  193. #define PKG_USING_SYSWATCH
  194. #define SYSWATCH_EXCEPT_RESOLVE_MODE_0
  195. #define SYSWATCH_EXCEPT_RESOLVE_MODE 0
  196. #define SYSWATCH_EXCEPT_TIMEOUT 1800
  197. #define SYSWATCH_EXCEPT_CONFIRM_TMO 15
  198. #define SYSWATCH_EXCEPT_RESUME_DLY 15
  199. #define SYSWATCH_THREAD_PRIO 0
  200. #define SYSWATCH_THREAD_STK_SIZE 1024
  201. #define SYSWATCH_THREAD_NAME "syswatch"
  202. #define SYSWATCH_WDT_NAME "wdt"
  203. #define SYSWATCH_WDT_TIMEOUT 5
  204. #define PKG_USING_SYSWATCH_LATEST_VERSION
  205. /* end of system packages */
  206. /* peripheral libraries and drivers */
  207. /* HAL & SDK Drivers */
  208. /* STM32 HAL & SDK Drivers */
  209. /* end of STM32 HAL & SDK Drivers */
  210. /* Infineon HAL Packages */
  211. /* end of Infineon HAL Packages */
  212. /* Kendryte SDK */
  213. /* end of Kendryte SDK */
  214. /* WCH HAL & SDK Drivers */
  215. /* end of WCH HAL & SDK Drivers */
  216. /* end of HAL & SDK Drivers */
  217. /* sensors drivers */
  218. #define PKG_USING_SHT3X
  219. #define PKG_USING_SHT3X_LATEST_VERSION
  220. /* end of sensors drivers */
  221. /* touch drivers */
  222. /* end of touch drivers */
  223. #define PKG_USING_LEDBLINK
  224. #define PKG_USING_LEDBLINK_LATEST_VERSION
  225. /* end of peripheral libraries and drivers */
  226. /* AI packages */
  227. /* end of AI packages */
  228. /* Signal Processing and Control Algorithm Packages */
  229. /* end of Signal Processing and Control Algorithm Packages */
  230. /* miscellaneous packages */
  231. /* project laboratory */
  232. /* end of project laboratory */
  233. /* samples: kernel and components samples */
  234. /* end of samples: kernel and components samples */
  235. /* entertainment: terminal games and other interesting software packages */
  236. /* end of entertainment: terminal games and other interesting software packages */
  237. /* end of miscellaneous packages */
  238. /* Arduino libraries */
  239. /* Projects and Demos */
  240. /* end of Projects and Demos */
  241. /* Sensors */
  242. /* end of Sensors */
  243. /* Display */
  244. /* end of Display */
  245. /* Timing */
  246. /* end of Timing */
  247. /* Data Processing */
  248. /* end of Data Processing */
  249. /* Data Storage */
  250. /* Communication */
  251. /* end of Communication */
  252. /* Device Control */
  253. /* end of Device Control */
  254. /* Other */
  255. /* end of Other */
  256. /* Signal IO */
  257. /* end of Signal IO */
  258. /* Uncategorized */
  259. /* end of Arduino libraries */
  260. /* end of RT-Thread online packages */
  261. /* samples: kernel and components samples */
  262. /* end of samples: kernel and components samples */
  263. #define SOC_FAMILY_STM32
  264. #define SOC_SERIES_STM32F1
  265. #define SOC_STM32F103RETX
  266. #endif