1
0

rtconfig.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. #define SOC_STM32F103ZE
  4. /* RT-Thread Kernel */
  5. /* klibc options */
  6. /* rt_vsnprintf options */
  7. /* end of rt_vsnprintf options */
  8. /* rt_vsscanf options */
  9. /* end of rt_vsscanf options */
  10. /* rt_memset options */
  11. /* end of rt_memset options */
  12. /* rt_memcpy options */
  13. /* end of rt_memcpy options */
  14. /* rt_memmove options */
  15. /* end of rt_memmove options */
  16. /* rt_memcmp options */
  17. /* end of rt_memcmp options */
  18. /* rt_strstr options */
  19. /* end of rt_strstr options */
  20. /* rt_strcasecmp options */
  21. /* end of rt_strcasecmp options */
  22. /* rt_strncpy options */
  23. /* end of rt_strncpy options */
  24. /* rt_strcpy options */
  25. /* end of rt_strcpy options */
  26. /* rt_strncmp options */
  27. /* end of rt_strncmp options */
  28. /* rt_strcmp options */
  29. /* end of rt_strcmp options */
  30. /* rt_strlen options */
  31. /* end of rt_strlen options */
  32. /* rt_strnlen options */
  33. /* end of rt_strnlen options */
  34. /* end of klibc options */
  35. #define RT_NAME_MAX 8
  36. #define RT_CPUS_NR 1
  37. #define RT_ALIGN_SIZE 8
  38. #define RT_THREAD_PRIORITY_32
  39. #define RT_THREAD_PRIORITY_MAX 32
  40. #define RT_TICK_PER_SECOND 1000
  41. #define RT_USING_OVERFLOW_CHECK
  42. #define RT_USING_HOOK
  43. #define RT_HOOK_USING_FUNC_PTR
  44. #define RT_USING_IDLE_HOOK
  45. #define RT_IDLE_HOOK_LIST_SIZE 4
  46. #define IDLE_THREAD_STACK_SIZE 256
  47. #define RT_USING_TIMER_SOFT
  48. #define RT_TIMER_THREAD_PRIO 4
  49. #define RT_TIMER_THREAD_STACK_SIZE 512
  50. /* kservice options */
  51. /* end of kservice options */
  52. #define RT_USING_DEBUG
  53. #define RT_DEBUGING_ASSERT
  54. #define RT_DEBUGING_COLOR
  55. #define RT_DEBUGING_CONTEXT
  56. /* Inter-Thread communication */
  57. #define RT_USING_SEMAPHORE
  58. #define RT_USING_MUTEX
  59. #define RT_USING_EVENT
  60. #define RT_USING_MAILBOX
  61. #define RT_USING_MESSAGEQUEUE
  62. /* end of Inter-Thread communication */
  63. /* Memory Management */
  64. #define RT_USING_MEMPOOL
  65. #define RT_USING_SMALL_MEM
  66. #define RT_USING_SMALL_MEM_AS_HEAP
  67. #define RT_USING_HEAP
  68. /* end of Memory Management */
  69. #define RT_USING_DEVICE
  70. #define RT_USING_CONSOLE
  71. #define RT_CONSOLEBUF_SIZE 128
  72. #define RT_CONSOLE_DEVICE_NAME "uart1"
  73. #define RT_VER_NUM 0x50201
  74. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  75. /* end of RT-Thread Kernel */
  76. #define RT_USING_HW_ATOMIC
  77. #define RT_USING_CPU_FFS
  78. #define ARCH_ARM
  79. #define ARCH_ARM_CORTEX_M
  80. #define ARCH_ARM_CORTEX_M3
  81. /* RT-Thread Components */
  82. #define RT_USING_COMPONENTS_INIT
  83. #define RT_USING_USER_MAIN
  84. #define RT_MAIN_THREAD_STACK_SIZE 2048
  85. #define RT_MAIN_THREAD_PRIORITY 10
  86. #define RT_USING_MSH
  87. #define RT_USING_FINSH
  88. #define FINSH_USING_MSH
  89. #define FINSH_THREAD_NAME "tshell"
  90. #define FINSH_THREAD_PRIORITY 20
  91. #define FINSH_THREAD_STACK_SIZE 4096
  92. #define FINSH_USING_HISTORY
  93. #define FINSH_HISTORY_LINES 5
  94. #define FINSH_USING_SYMTAB
  95. #define FINSH_CMD_SIZE 80
  96. #define MSH_USING_BUILT_IN_COMMANDS
  97. #define FINSH_USING_DESCRIPTION
  98. #define FINSH_ARG_MAX 10
  99. #define FINSH_USING_OPTION_COMPLETION
  100. /* DFS: device virtual file system */
  101. #define RT_USING_DFS
  102. #define DFS_USING_POSIX
  103. #define DFS_USING_WORKDIR
  104. #define DFS_FD_MAX 16
  105. #define RT_USING_DFS_V1
  106. #define DFS_FILESYSTEMS_MAX 4
  107. #define DFS_FILESYSTEM_TYPES_MAX 4
  108. /* end of DFS: device virtual file system */
  109. /* Device Drivers */
  110. #define RT_USING_DEVICE_IPC
  111. #define RT_UNAMED_PIPE_NUMBER 64
  112. #define RT_USING_SERIAL
  113. #define RT_USING_SERIAL_V1
  114. #define RT_SERIAL_USING_DMA
  115. #define RT_SERIAL_RB_BUFSZ 64
  116. #define RT_USING_PIN
  117. /* end of Device Drivers */
  118. /* C/C++ and POSIX layer */
  119. /* ISO-ANSI C layer */
  120. /* Timezone and Daylight Saving Time */
  121. #define RT_LIBC_USING_LIGHT_TZ_DST
  122. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  123. #define RT_LIBC_TZ_DEFAULT_MIN 0
  124. #define RT_LIBC_TZ_DEFAULT_SEC 0
  125. /* end of Timezone and Daylight Saving Time */
  126. /* end of ISO-ANSI C layer */
  127. /* POSIX (Portable Operating System Interface) layer */
  128. /* Interprocess Communication (IPC) */
  129. /* Socket is in the 'Network' category */
  130. /* end of Interprocess Communication (IPC) */
  131. /* end of POSIX (Portable Operating System Interface) layer */
  132. /* end of C/C++ and POSIX layer */
  133. /* Network */
  134. /* end of Network */
  135. /* Memory protection */
  136. /* end of Memory protection */
  137. /* Utilities */
  138. /* end of Utilities */
  139. /* Using USB legacy version */
  140. /* end of Using USB legacy version */
  141. /* end of RT-Thread Components */
  142. /* RT-Thread Utestcases */
  143. /* end of RT-Thread Utestcases */
  144. /* RT-Thread online packages */
  145. /* IoT - internet of things */
  146. /* Wi-Fi */
  147. /* Marvell WiFi */
  148. /* end of Marvell WiFi */
  149. /* Wiced WiFi */
  150. /* end of Wiced WiFi */
  151. /* CYW43012 WiFi */
  152. /* end of CYW43012 WiFi */
  153. /* BL808 WiFi */
  154. /* end of BL808 WiFi */
  155. /* CYW43439 WiFi */
  156. /* end of CYW43439 WiFi */
  157. /* end of Wi-Fi */
  158. /* IoT Cloud */
  159. /* end of IoT Cloud */
  160. /* end of IoT - internet of things */
  161. /* security packages */
  162. /* end of security packages */
  163. /* language packages */
  164. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  165. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  166. /* XML: Extensible Markup Language */
  167. /* end of XML: Extensible Markup Language */
  168. /* end of language packages */
  169. /* multimedia packages */
  170. /* LVGL: powerful and easy-to-use embedded GUI library */
  171. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  172. /* u8g2: a monochrome graphic library */
  173. /* end of u8g2: a monochrome graphic library */
  174. /* end of multimedia packages */
  175. /* tools packages */
  176. /* end of tools packages */
  177. /* system packages */
  178. /* enhanced kernel services */
  179. /* end of enhanced kernel services */
  180. /* acceleration: Assembly language or algorithmic acceleration packages */
  181. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  182. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  183. #define PKG_USING_CMSIS_CORE
  184. #define PKG_USING_CMSIS_CORE_LATEST_VERSION
  185. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  186. /* Micrium: Micrium software products porting for RT-Thread */
  187. /* end of Micrium: Micrium software products porting for RT-Thread */
  188. /* end of system packages */
  189. /* peripheral libraries and drivers */
  190. /* HAL & SDK Drivers */
  191. /* STM32 HAL & SDK Drivers */
  192. #define PKG_USING_STM32F1_HAL_DRIVER
  193. #define PKG_USING_STM32F1_HAL_DRIVER_LATEST_VERSION
  194. #define PKG_USING_STM32F1_CMSIS_DRIVER
  195. #define PKG_USING_STM32F1_CMSIS_DRIVER_LATEST_VERSION
  196. /* end of STM32 HAL & SDK Drivers */
  197. /* Infineon HAL Packages */
  198. /* end of Infineon HAL Packages */
  199. /* Kendryte SDK */
  200. /* end of Kendryte SDK */
  201. /* WCH HAL & SDK Drivers */
  202. /* end of WCH HAL & SDK Drivers */
  203. /* AT32 HAL & SDK Drivers */
  204. /* end of AT32 HAL & SDK Drivers */
  205. /* end of HAL & SDK Drivers */
  206. /* sensors drivers */
  207. /* end of sensors drivers */
  208. /* touch drivers */
  209. /* end of touch drivers */
  210. /* end of peripheral libraries and drivers */
  211. /* AI packages */
  212. /* end of AI packages */
  213. /* Signal Processing and Control Algorithm Packages */
  214. /* end of Signal Processing and Control Algorithm Packages */
  215. /* miscellaneous packages */
  216. /* project laboratory */
  217. /* end of project laboratory */
  218. /* samples: kernel and components samples */
  219. /* end of samples: kernel and components samples */
  220. /* entertainment: terminal games and other interesting software packages */
  221. /* end of entertainment: terminal games and other interesting software packages */
  222. /* end of miscellaneous packages */
  223. /* Arduino libraries */
  224. /* Projects and Demos */
  225. /* end of Projects and Demos */
  226. /* Sensors */
  227. /* end of Sensors */
  228. /* Display */
  229. /* end of Display */
  230. /* Timing */
  231. /* end of Timing */
  232. /* Data Processing */
  233. /* end of Data Processing */
  234. /* Data Storage */
  235. /* Communication */
  236. /* end of Communication */
  237. /* Device Control */
  238. /* end of Device Control */
  239. /* Other */
  240. /* end of Other */
  241. /* Signal IO */
  242. /* end of Signal IO */
  243. /* Uncategorized */
  244. /* end of Arduino libraries */
  245. /* end of RT-Thread online packages */
  246. #define SOC_FAMILY_STM32
  247. #define SOC_SERIES_STM32F1
  248. /* Hardware Drivers Config */
  249. /* Onboard Peripheral Drivers */
  250. #define BSP_USING_USB_TO_USART
  251. /* end of Onboard Peripheral Drivers */
  252. /* On-chip Peripheral Drivers */
  253. #define BSP_USING_GPIO
  254. #define BSP_USING_UART
  255. #define BSP_STM32_UART_V1_TX_TIMEOUT 2000
  256. #define BSP_USING_UART1
  257. /* end of On-chip Peripheral Drivers */
  258. /* Board extended module Drivers */
  259. /* end of Hardware Drivers Config */
  260. #endif