rtconfig.h 7.8 KB

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