rtconfig.h 8.0 KB

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