1
0

rtconfig.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. #define SOC_STM32F103RB
  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. /* kservice options */
  48. /* end of kservice options */
  49. #define RT_USING_DEBUG
  50. #define RT_DEBUGING_ASSERT
  51. #define RT_DEBUGING_COLOR
  52. #define RT_DEBUGING_CONTEXT
  53. /* Inter-Thread communication */
  54. #define RT_USING_SEMAPHORE
  55. #define RT_USING_MUTEX
  56. #define RT_USING_EVENT
  57. #define RT_USING_MAILBOX
  58. #define RT_USING_MESSAGEQUEUE
  59. /* end of Inter-Thread communication */
  60. /* Memory Management */
  61. #define RT_USING_MEMPOOL
  62. #define RT_USING_SMALL_MEM
  63. #define RT_USING_MEMHEAP
  64. #define RT_MEMHEAP_FAST_MODE
  65. #define RT_USING_SMALL_MEM_AS_HEAP
  66. #define RT_USING_HEAP
  67. /* end of Memory Management */
  68. #define RT_USING_DEVICE
  69. #define RT_USING_CONSOLE
  70. #define RT_CONSOLEBUF_SIZE 128
  71. #define RT_CONSOLE_DEVICE_NAME "uart1"
  72. #define RT_VER_NUM 0x50201
  73. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  74. /* end of RT-Thread Kernel */
  75. #define RT_USING_HW_ATOMIC
  76. #define RT_USING_CPU_FFS
  77. #define ARCH_ARM
  78. #define ARCH_ARM_CORTEX_M
  79. #define ARCH_ARM_CORTEX_M3
  80. /* RT-Thread Components */
  81. #define RT_USING_COMPONENTS_INIT
  82. #define RT_USING_USER_MAIN
  83. #define RT_MAIN_THREAD_STACK_SIZE 2048
  84. #define RT_MAIN_THREAD_PRIORITY 10
  85. #define RT_USING_MSH
  86. #define RT_USING_FINSH
  87. #define FINSH_USING_MSH
  88. #define FINSH_THREAD_NAME "tshell"
  89. #define FINSH_THREAD_PRIORITY 20
  90. #define FINSH_THREAD_STACK_SIZE 4096
  91. #define FINSH_USING_HISTORY
  92. #define FINSH_HISTORY_LINES 5
  93. #define FINSH_USING_SYMTAB
  94. #define FINSH_CMD_SIZE 80
  95. #define MSH_USING_BUILT_IN_COMMANDS
  96. #define FINSH_USING_DESCRIPTION
  97. #define FINSH_ARG_MAX 10
  98. #define FINSH_USING_OPTION_COMPLETION
  99. /* DFS: device virtual file system */
  100. /* end of DFS: device virtual file system */
  101. /* Device Drivers */
  102. #define RT_USING_DEVICE_IPC
  103. #define RT_UNAMED_PIPE_NUMBER 64
  104. #define RT_USING_SERIAL
  105. #define RT_USING_SERIAL_V1
  106. #define RT_SERIAL_USING_DMA
  107. #define RT_SERIAL_RB_BUFSZ 64
  108. #define RT_USING_PIN
  109. /* end of Device Drivers */
  110. /* C/C++ and POSIX layer */
  111. /* ISO-ANSI C layer */
  112. /* Timezone and Daylight Saving Time */
  113. #define RT_LIBC_USING_LIGHT_TZ_DST
  114. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  115. #define RT_LIBC_TZ_DEFAULT_MIN 0
  116. #define RT_LIBC_TZ_DEFAULT_SEC 0
  117. /* end of Timezone and Daylight Saving Time */
  118. /* end of ISO-ANSI C layer */
  119. /* POSIX (Portable Operating System Interface) layer */
  120. /* Interprocess Communication (IPC) */
  121. /* Socket is in the 'Network' category */
  122. /* end of Interprocess Communication (IPC) */
  123. /* end of POSIX (Portable Operating System Interface) layer */
  124. /* end of C/C++ and POSIX layer */
  125. /* Network */
  126. /* end of Network */
  127. /* Memory protection */
  128. /* end of Memory protection */
  129. /* Utilities */
  130. /* end of Utilities */
  131. /* Using USB legacy version */
  132. /* end of Using USB legacy version */
  133. /* end of RT-Thread Components */
  134. /* RT-Thread Utestcases */
  135. /* end of RT-Thread Utestcases */
  136. /* RT-Thread online packages */
  137. /* IoT - internet of things */
  138. /* Wi-Fi */
  139. /* Marvell WiFi */
  140. /* end of Marvell WiFi */
  141. /* Wiced WiFi */
  142. /* end of Wiced WiFi */
  143. /* CYW43012 WiFi */
  144. /* end of CYW43012 WiFi */
  145. /* BL808 WiFi */
  146. /* end of BL808 WiFi */
  147. /* CYW43439 WiFi */
  148. /* end of CYW43439 WiFi */
  149. /* end of Wi-Fi */
  150. /* IoT Cloud */
  151. /* end of IoT Cloud */
  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. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  158. /* XML: Extensible Markup Language */
  159. /* end of XML: Extensible Markup Language */
  160. /* end of language packages */
  161. /* multimedia packages */
  162. /* LVGL: powerful and easy-to-use embedded GUI library */
  163. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  164. /* u8g2: a monochrome graphic library */
  165. /* end of u8g2: a monochrome graphic library */
  166. /* end of multimedia packages */
  167. /* tools packages */
  168. /* end of tools packages */
  169. /* system packages */
  170. /* enhanced kernel services */
  171. /* end of enhanced kernel services */
  172. /* acceleration: Assembly language or algorithmic acceleration packages */
  173. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  174. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  175. #define PKG_USING_CMSIS_CORE
  176. #define PKG_USING_CMSIS_CORE_LATEST_VERSION
  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. /* end of system packages */
  181. /* peripheral libraries and drivers */
  182. /* HAL & SDK Drivers */
  183. /* STM32 HAL & SDK Drivers */
  184. #define PKG_USING_STM32F1_HAL_DRIVER
  185. #define PKG_USING_STM32F1_HAL_DRIVER_LATEST_VERSION
  186. #define PKG_USING_STM32F1_CMSIS_DRIVER
  187. #define PKG_USING_STM32F1_CMSIS_DRIVER_LATEST_VERSION
  188. /* end of STM32 HAL & SDK Drivers */
  189. /* Infineon HAL Packages */
  190. /* end of Infineon HAL Packages */
  191. /* Kendryte SDK */
  192. /* end of Kendryte SDK */
  193. /* WCH HAL & SDK Drivers */
  194. /* end of WCH HAL & SDK Drivers */
  195. /* AT32 HAL & SDK Drivers */
  196. /* end of AT32 HAL & SDK Drivers */
  197. /* end of HAL & SDK Drivers */
  198. /* sensors drivers */
  199. /* end of sensors drivers */
  200. /* touch drivers */
  201. /* end of touch drivers */
  202. /* end of peripheral libraries and drivers */
  203. /* AI packages */
  204. /* end of AI packages */
  205. /* Signal Processing and Control Algorithm Packages */
  206. /* end of Signal Processing and Control Algorithm Packages */
  207. /* miscellaneous packages */
  208. /* project laboratory */
  209. /* end of project laboratory */
  210. /* samples: kernel and components samples */
  211. /* end of samples: kernel and components samples */
  212. /* entertainment: terminal games and other interesting software packages */
  213. /* end of entertainment: terminal games and other interesting software packages */
  214. /* end of miscellaneous packages */
  215. /* Arduino libraries */
  216. /* Projects and Demos */
  217. /* end of Projects and Demos */
  218. /* Sensors */
  219. /* end of Sensors */
  220. /* Display */
  221. /* end of Display */
  222. /* Timing */
  223. /* end of Timing */
  224. /* Data Processing */
  225. /* end of Data Processing */
  226. /* Data Storage */
  227. /* Communication */
  228. /* end of Communication */
  229. /* Device Control */
  230. /* end of Device Control */
  231. /* Other */
  232. /* end of Other */
  233. /* Signal IO */
  234. /* end of Signal IO */
  235. /* Uncategorized */
  236. /* end of Arduino libraries */
  237. /* end of RT-Thread online packages */
  238. #define SOC_FAMILY_STM32
  239. #define SOC_SERIES_STM32F1
  240. /* Hardware Drivers Config */
  241. /* Onboard Peripheral Drivers */
  242. #define BSP_USING_USB_TO_USART
  243. /* end of Onboard Peripheral Drivers */
  244. /* On-chip Peripheral Drivers */
  245. #define BSP_USING_GPIO
  246. #define BSP_USING_UART
  247. #define BSP_STM32_UART_V1_TX_TIMEOUT 2000
  248. #define BSP_USING_UART1
  249. /* end of On-chip Peripheral Drivers */
  250. /* Board extended module Drivers */
  251. /* end of Hardware Drivers Config */
  252. #endif