rtconfig.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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_SOFT_RTC
  78. #define RT_USING_SPI
  79. #define RT_USING_SFUD
  80. #define RT_SFUD_USING_SFDP
  81. #define RT_SFUD_USING_FLASH_INFO_TABLE
  82. #define RT_SFUD_SPI_MAX_HZ 24000000
  83. #define RT_USING_WDT
  84. /* Using USB */
  85. /* end of Using USB */
  86. /* end of Device Drivers */
  87. /* POSIX layer and C standard library */
  88. #define RT_USING_LIBC
  89. /* end of POSIX layer and C standard library */
  90. /* Network */
  91. /* Socket abstraction layer */
  92. /* end of Socket abstraction layer */
  93. /* Network interface device */
  94. /* end of Network interface device */
  95. /* light weight TCP/IP stack */
  96. /* end of light weight TCP/IP stack */
  97. /* AT commands */
  98. /* end of AT commands */
  99. /* end of Network */
  100. /* VBUS(Virtual Software BUS) */
  101. /* end of VBUS(Virtual Software BUS) */
  102. /* Utilities */
  103. #define RT_USING_RYM
  104. /* end of Utilities */
  105. /* end of RT-Thread Components */
  106. /* RT-Thread online packages */
  107. /* IoT - internet of things */
  108. #define PKG_USING_FREEMODBUS
  109. #define PKG_MODBUS_MASTER
  110. /* advanced configuration */
  111. #define RT_M_DISCRETE_INPUT_START 0
  112. #define RT_M_DISCRETE_INPUT_NDISCRETES 16
  113. #define RT_M_COIL_START 0
  114. #define RT_M_COIL_NCOILS 64
  115. #define RT_M_REG_INPUT_START 0
  116. #define RT_M_REG_INPUT_NREGS 10
  117. #define RT_M_REG_HOLDING_START 0
  118. #define RT_M_REG_HOLDING_NREGS 10
  119. #define RT_M_HD_RESERVE 0
  120. #define RT_M_IN_RESERVE 4
  121. #define RT_M_CO_RESERVE 0
  122. #define RT_M_DI_RESERVE 4
  123. /* end of advanced configuration */
  124. #define PKG_MODBUS_MASTER_RTU
  125. #define PKG_MODBUS_MASTER_SAMPLE
  126. #define MB_SAMPLE_TEST_SLAVE_ADDR 1
  127. #define MB_MASTER_USING_PORT_NUM 5
  128. #define MB_MASTER_USING_PORT_BAUDRATE 9600
  129. #define PKG_USING_FREEMODBUS_LATEST_VERSION
  130. /* Wi-Fi */
  131. /* Marvell WiFi */
  132. /* end of Marvell WiFi */
  133. /* Wiced WiFi */
  134. /* end of Wiced WiFi */
  135. /* end of Wi-Fi */
  136. /* IoT Cloud */
  137. /* end of IoT Cloud */
  138. #define PKG_USING_OTA_DOWNLOADER
  139. #define PKG_USING_YMODEM_OTA
  140. #define PKG_USING_OTA_DOWNLOADER_LATEST_VERSION
  141. /* end of IoT - internet of things */
  142. /* security packages */
  143. /* end of security packages */
  144. /* language packages */
  145. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  146. #define PKG_USING_CJSON
  147. #define PKG_USING_CJSON_V159
  148. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  149. /* XML: Extensible Markup Language */
  150. /* end of XML: Extensible Markup Language */
  151. /* end of language packages */
  152. /* multimedia packages */
  153. /* LVGL: powerful and easy-to-use embedded GUI library */
  154. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  155. /* u8g2: a monochrome graphic library */
  156. /* end of u8g2: a monochrome graphic library */
  157. /* end of multimedia packages */
  158. /* tools packages */
  159. #define PKG_USING_EASYFLASH
  160. #define PKG_EASYFLASH_ENV
  161. #define PKG_EASYFLASH_LOG
  162. #define PKG_EASYFLASH_LOG_AREA_SIZE 8192
  163. #define PKG_EASYFLASH_ERASE_GRAN 4096
  164. #define PKG_EASYFLASH_WRITE_GRAN_32BITS
  165. #define PKG_EASYFLASH_WRITE_GRAN 32
  166. #define PKG_EASYFLASH_START_ADDR 0
  167. #define PKG_EASYFLASH_DEBUG
  168. #define PKG_USING_EASYFLASH_LATEST_VERSION
  169. #define PKG_EASYFLASH_VER_NUM 0x99999
  170. /* end of tools packages */
  171. /* system packages */
  172. /* enhanced kernel services */
  173. /* end of enhanced kernel services */
  174. /* acceleration: Assembly language or algorithmic acceleration packages */
  175. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  176. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  177. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  178. /* Micrium: Micrium software products porting for RT-Thread */
  179. /* end of Micrium: Micrium software products porting for RT-Thread */
  180. #define PKG_USING_FAL
  181. #define FAL_DEBUG_CONFIG
  182. #define FAL_DEBUG 1
  183. #define FAL_PART_HAS_TABLE_CFG
  184. #define FAL_USING_SFUD_PORT
  185. #define FAL_USING_NOR_FLASH_DEV_NAME "MYFLASH16"
  186. #define PKG_USING_FAL_LATEST_VERSION
  187. #define PKG_FAL_VER_NUM 0x99999
  188. #define PKG_USING_SYSWATCH
  189. #define SYSWATCH_EXCEPT_RESOLVE_MODE_0
  190. #define SYSWATCH_EXCEPT_RESOLVE_MODE 0
  191. #define SYSWATCH_EXCEPT_TIMEOUT 1800
  192. #define SYSWATCH_EXCEPT_CONFIRM_TMO 15
  193. #define SYSWATCH_EXCEPT_RESUME_DLY 15
  194. #define SYSWATCH_THREAD_PRIO 0
  195. #define SYSWATCH_THREAD_STK_SIZE 1024
  196. #define SYSWATCH_THREAD_NAME "syswatch"
  197. #define SYSWATCH_WDT_NAME "wdt"
  198. #define SYSWATCH_WDT_TIMEOUT 5
  199. #define PKG_USING_SYSWATCH_LATEST_VERSION
  200. /* end of system packages */
  201. /* peripheral libraries and drivers */
  202. /* sensors drivers */
  203. #define PKG_USING_SHT3X
  204. #define PKG_USING_SHT3X_LATEST_VERSION
  205. /* end of sensors drivers */
  206. /* touch drivers */
  207. /* end of touch drivers */
  208. #define PKG_USING_LEDBLINK
  209. #define PKG_USING_LEDBLINK_LATEST_VERSION
  210. /* Kendryte SDK */
  211. /* end of Kendryte SDK */
  212. /* end of peripheral libraries and drivers */
  213. /* AI packages */
  214. /* end of AI packages */
  215. /* Signal Processing and Control Algorithm Packages */
  216. /* end of Signal Processing and Control Algorithm Packages */
  217. /* miscellaneous packages */
  218. /* project laboratory */
  219. /* end of project laboratory */
  220. /* samples: kernel and components samples */
  221. /* end of samples: kernel and components samples */
  222. /* entertainment: terminal games and other interesting software packages */
  223. /* end of entertainment: terminal games and other interesting software packages */
  224. /* end of miscellaneous packages */
  225. /* end of RT-Thread online packages */
  226. /* samples: kernel and components samples */
  227. /* end of samples: kernel and components samples */
  228. #define SOC_FAMILY_STM32
  229. #define SOC_SERIES_STM32F1
  230. #define SOC_STM32F103RETX
  231. #endif