rtconfig.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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 512
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 512
  18. /* Inter-Thread communication */
  19. #define RT_USING_SEMAPHORE
  20. #define RT_USING_MUTEX
  21. #define RT_USING_EVENT
  22. #define RT_USING_MAILBOX
  23. #define RT_USING_MESSAGEQUEUE
  24. #define RT_USING_SIGNALS
  25. /* end of Inter-Thread communication */
  26. /* Memory Management */
  27. #define RT_USING_MEMPOOL
  28. #define RT_USING_SMALL_MEM
  29. #define RT_USING_MEMTRACE
  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 512
  36. #define RT_CONSOLE_DEVICE_NAME "uart1"
  37. /* end of Kernel Device Object */
  38. #define RT_VER_NUM 0x40002
  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_M3
  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_SYMTAB
  55. #define FINSH_USING_DESCRIPTION
  56. #define FINSH_THREAD_PRIORITY 20
  57. #define FINSH_THREAD_STACK_SIZE 2048
  58. #define FINSH_CMD_SIZE 80
  59. #define FINSH_USING_MSH
  60. #define FINSH_USING_MSH_DEFAULT
  61. #define FINSH_ARG_MAX 10
  62. /* end of Command shell */
  63. /* Device virtual file system */
  64. /* end of Device virtual file system */
  65. /* Device Drivers */
  66. #define RT_USING_DEVICE_IPC
  67. #define RT_PIPE_BUFSZ 512
  68. #define RT_USING_SYSTEM_WORKQUEUE
  69. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  70. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  71. #define RT_USING_SERIAL
  72. #define RT_SERIAL_USING_DMA
  73. #define RT_SERIAL_RB_BUFSZ 512
  74. #define RT_USING_HWTIMER
  75. #define RT_USING_I2C
  76. #define RT_USING_I2C_BITOPS
  77. #define RT_USING_PIN
  78. #define RT_USING_ADC
  79. #define RT_USING_PWM
  80. #define RT_USING_RTC
  81. #define RT_USING_SPI
  82. #define RT_USING_SFUD
  83. #define RT_SFUD_USING_SFDP
  84. #define RT_SFUD_USING_FLASH_INFO_TABLE
  85. #define RT_SFUD_SPI_MAX_HZ 50000000
  86. #define RT_USING_WDT
  87. /* Using USB */
  88. /* end of Using USB */
  89. /* end of Device Drivers */
  90. /* POSIX layer and C standard library */
  91. #define RT_USING_LIBC
  92. /* end of POSIX layer and C standard library */
  93. /* Network */
  94. /* Socket abstraction layer */
  95. #define RT_USING_SAL
  96. /* protocol stack implement */
  97. #define SAL_USING_AT
  98. /* end of protocol stack implement */
  99. #define SAL_SOCKETS_NUM 16
  100. /* end of Socket abstraction layer */
  101. /* Network interface device */
  102. #define RT_USING_NETDEV
  103. #define NETDEV_USING_IFCONFIG
  104. #define NETDEV_USING_PING
  105. #define NETDEV_USING_NETSTAT
  106. #define NETDEV_USING_AUTO_DEFAULT
  107. #define NETDEV_IPV4 1
  108. #define NETDEV_IPV6 0
  109. /* end of Network interface device */
  110. /* light weight TCP/IP stack */
  111. /* end of light weight TCP/IP stack */
  112. /* AT commands */
  113. #define RT_USING_AT
  114. #define AT_USING_CLIENT
  115. #define AT_CLIENT_NUM_MAX 1
  116. #define AT_USING_SOCKET
  117. #define AT_USING_CLI
  118. #define AT_CMD_MAX_LEN 128
  119. #define AT_SW_VERSION_NUM 0x10300
  120. /* end of AT commands */
  121. /* end of Network */
  122. /* VBUS(Virtual Software BUS) */
  123. /* end of VBUS(Virtual Software BUS) */
  124. /* Utilities */
  125. #define RT_USING_RYM
  126. /* end of Utilities */
  127. /* end of RT-Thread Components */
  128. /* RT-Thread online packages */
  129. /* IoT - internet of things */
  130. #define PKG_USING_CJSON
  131. #define PKG_USING_CJSON_LATEST_VERSION
  132. #define PKG_USING_FREEMODBUS
  133. #define PKG_MODBUS_MASTER
  134. /* advanced configuration */
  135. #define RT_M_DISCRETE_INPUT_START 0
  136. #define RT_M_DISCRETE_INPUT_NDISCRETES 16
  137. #define RT_M_COIL_START 0
  138. #define RT_M_COIL_NCOILS 64
  139. #define RT_M_REG_INPUT_START 0
  140. #define RT_M_REG_INPUT_NREGS 10
  141. #define RT_M_REG_HOLDING_START 0
  142. #define RT_M_REG_HOLDING_NREGS 10
  143. #define RT_M_HD_RESERVE 0
  144. #define RT_M_IN_RESERVE 4
  145. #define RT_M_CO_RESERVE 0
  146. #define RT_M_DI_RESERVE 4
  147. /* end of advanced configuration */
  148. #define PKG_MODBUS_MASTER_RTU
  149. #define PKG_MODBUS_MASTER_SAMPLE
  150. #define MB_SAMPLE_TEST_SLAVE_ADDR 1
  151. #define MB_MASTER_USING_PORT_NUM 5
  152. #define MB_MASTER_USING_PORT_BAUDRATE 9600
  153. #define PKG_USING_FREEMODBUS_LATEST_VERSION
  154. /* Wi-Fi */
  155. /* Marvell WiFi */
  156. /* end of Marvell WiFi */
  157. /* Wiced WiFi */
  158. /* end of Wiced WiFi */
  159. /* end of Wi-Fi */
  160. #define PKG_USING_AT_DEVICE
  161. #define AT_DEVICE_USING_AIR720
  162. #define AT_DEVICE_AIR720_SAMPLE
  163. #define AIR720_SAMPLE_POWER_PIN -1
  164. #define AIR720_SAMPLE_STATUS_PIN -1
  165. #define AIR720_SAMPLE_CLIENT_NAME "uart3"
  166. #define AIR720_SAMPLE_RECV_BUFF_LEN 512
  167. #define PKG_USING_AT_DEVICE_V204
  168. #define PKG_AT_DEVICE_VER_NUM 0x20004
  169. /* IoT Cloud */
  170. /* end of IoT Cloud */
  171. #define PKG_USING_OTA_DOWNLOADER
  172. #define PKG_USING_YMODEM_OTA
  173. #define PKG_USING_OTA_DOWNLOADER_LATEST_VERSION
  174. /* end of IoT - internet of things */
  175. /* security packages */
  176. /* end of security packages */
  177. /* language packages */
  178. /* end of language packages */
  179. /* multimedia packages */
  180. /* LVGL: powerful and easy-to-use embedded GUI library */
  181. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  182. /* u8g2: a monochrome graphic library */
  183. /* end of u8g2: a monochrome graphic library */
  184. /* end of multimedia packages */
  185. /* tools packages */
  186. #define PKG_USING_EASYFLASH
  187. #define PKG_EASYFLASH_ENV
  188. #define PKG_EASYFLASH_LOG
  189. #define PKG_EASYFLASH_LOG_AREA_SIZE 8192
  190. #define PKG_EASYFLASH_ERASE_GRAN 4096
  191. #define PKG_EASYFLASH_WRITE_GRAN_32BITS
  192. #define PKG_EASYFLASH_WRITE_GRAN 32
  193. #define PKG_EASYFLASH_START_ADDR 0
  194. #define PKG_EASYFLASH_DEBUG
  195. #define PKG_USING_EASYFLASH_LATEST_VERSION
  196. #define PKG_EASYFLASH_VER_NUM 0x99999
  197. /* end of tools packages */
  198. /* system packages */
  199. /* acceleration: Assembly language or algorithmic acceleration packages */
  200. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  201. /* Micrium: Micrium software products porting for RT-Thread */
  202. /* end of Micrium: Micrium software products porting for RT-Thread */
  203. #define PKG_USING_FAL
  204. #define FAL_DEBUG_CONFIG
  205. #define FAL_DEBUG 1
  206. #define FAL_PART_HAS_TABLE_CFG
  207. #define FAL_USING_SFUD_PORT
  208. #define FAL_USING_NOR_FLASH_DEV_NAME "MYFLASH16"
  209. #define PKG_USING_FAL_LATEST_VERSION
  210. #define PKG_FAL_VER_NUM 0x99999
  211. #define PKG_USING_SYSWATCH
  212. #define SYSWATCH_EXCEPT_RESOLVE_MODE_0
  213. #define SYSWATCH_EXCEPT_RESOLVE_MODE 0
  214. #define SYSWATCH_EXCEPT_TIMEOUT 1800
  215. #define SYSWATCH_EXCEPT_CONFIRM_TMO 15
  216. #define SYSWATCH_EXCEPT_RESUME_DLY 15
  217. #define SYSWATCH_THREAD_PRIO 0
  218. #define SYSWATCH_THREAD_STK_SIZE 512
  219. #define SYSWATCH_THREAD_NAME "syswatch"
  220. #define SYSWATCH_WDT_NAME "wdt"
  221. #define SYSWATCH_WDT_TIMEOUT 5
  222. #define PKG_USING_SYSWATCH_LATEST_VERSION
  223. /* end of system packages */
  224. /* peripheral libraries and drivers */
  225. #define PKG_USING_SHT3X
  226. #define PKG_USING_SHT3X_LATEST_VERSION
  227. #define PKG_USING_LEDBLINK
  228. #define PKG_USING_LEDBLINK_LATEST_VERSION
  229. /* end of peripheral libraries and drivers */
  230. /* AI packages */
  231. /* end of AI packages */
  232. /* miscellaneous packages */
  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. /* end of RT-Thread online packages */
  239. /* samples: kernel and components samples */
  240. /* end of samples: kernel and components samples */
  241. #define SOC_FAMILY_STM32
  242. #define SOC_SERIES_STM32F1
  243. #define SOC_STM32F101RETX
  244. #endif