rtconfig.h 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. #define SOC_STM32H750VBT6
  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_MEMHEAP
  63. #define RT_MEMHEAP_FAST_MODE
  64. #define RT_USING_MEMHEAP_AS_HEAP
  65. #define RT_USING_MEMHEAP_AUTO_BINDING
  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_CACHE
  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_M7
  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. #define RT_USING_DFS_DEVFS
  109. /* end of DFS: device virtual file system */
  110. #define RT_USING_FAL
  111. #define FAL_USING_DEBUG
  112. #define FAL_PART_HAS_TABLE_CFG
  113. #define FAL_USING_SFUD_PORT
  114. #define FAL_USING_NOR_FLASH_DEV_NAME "norflash0"
  115. /* Device Drivers */
  116. #define RT_USING_DEVICE_IPC
  117. #define RT_UNAMED_PIPE_NUMBER 64
  118. #define RT_USING_SERIAL
  119. #define RT_USING_SERIAL_V2
  120. #define RT_SERIAL_BUF_STRATEGY_OVERWRITE
  121. #define RT_SERIAL_USING_DMA
  122. #define RT_USING_PWM
  123. #define RT_USING_MTD_NOR
  124. #define RT_USING_SPI
  125. #define RT_USING_QSPI
  126. #define RT_USING_SFUD
  127. #define RT_SFUD_USING_SFDP
  128. #define RT_SFUD_USING_FLASH_INFO_TABLE
  129. #define RT_SFUD_USING_QSPI
  130. #define RT_SFUD_SPI_MAX_HZ 10000000
  131. #define RT_USING_PIN
  132. /* end of Device Drivers */
  133. /* C/C++ and POSIX layer */
  134. /* ISO-ANSI C layer */
  135. /* Timezone and Daylight Saving Time */
  136. #define RT_LIBC_USING_LIGHT_TZ_DST
  137. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  138. #define RT_LIBC_TZ_DEFAULT_MIN 0
  139. #define RT_LIBC_TZ_DEFAULT_SEC 0
  140. /* end of Timezone and Daylight Saving Time */
  141. /* end of ISO-ANSI C layer */
  142. /* POSIX (Portable Operating System Interface) layer */
  143. /* Interprocess Communication (IPC) */
  144. /* Socket is in the 'Network' category */
  145. /* end of Interprocess Communication (IPC) */
  146. /* end of POSIX (Portable Operating System Interface) layer */
  147. /* end of C/C++ and POSIX layer */
  148. /* Network */
  149. /* end of Network */
  150. /* Memory protection */
  151. /* end of Memory protection */
  152. /* Utilities */
  153. /* end of Utilities */
  154. /* Using USB legacy version */
  155. /* end of Using USB legacy version */
  156. /* end of RT-Thread Components */
  157. /* RT-Thread Utestcases */
  158. /* end of RT-Thread Utestcases */
  159. /* RT-Thread online packages */
  160. /* IoT - internet of things */
  161. /* Wi-Fi */
  162. /* Marvell WiFi */
  163. /* end of Marvell WiFi */
  164. /* Wiced WiFi */
  165. /* end of Wiced WiFi */
  166. /* CYW43012 WiFi */
  167. /* end of CYW43012 WiFi */
  168. /* BL808 WiFi */
  169. /* end of BL808 WiFi */
  170. /* CYW43439 WiFi */
  171. /* end of CYW43439 WiFi */
  172. /* end of Wi-Fi */
  173. /* IoT Cloud */
  174. /* end of IoT Cloud */
  175. /* end of IoT - internet of things */
  176. /* security packages */
  177. /* end of security packages */
  178. /* language packages */
  179. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  180. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  181. /* XML: Extensible Markup Language */
  182. /* end of XML: Extensible Markup Language */
  183. /* end of language packages */
  184. /* multimedia packages */
  185. /* LVGL: powerful and easy-to-use embedded GUI library */
  186. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  187. /* u8g2: a monochrome graphic library */
  188. /* end of u8g2: a monochrome graphic library */
  189. /* end of multimedia packages */
  190. /* tools packages */
  191. /* end of tools packages */
  192. /* system packages */
  193. /* enhanced kernel services */
  194. /* end of enhanced kernel services */
  195. /* acceleration: Assembly language or algorithmic acceleration packages */
  196. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  197. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  198. #define PKG_USING_CMSIS_CORE
  199. #define PKG_USING_CMSIS_CORE_LATEST_VERSION
  200. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  201. /* Micrium: Micrium software products porting for RT-Thread */
  202. /* end of Micrium: Micrium software products porting for RT-Thread */
  203. /* end of system packages */
  204. /* peripheral libraries and drivers */
  205. /* HAL & SDK Drivers */
  206. /* STM32 HAL & SDK Drivers */
  207. #define PKG_USING_STM32H7_HAL_DRIVER
  208. #define PKG_USING_STM32H7_HAL_DRIVER_LATEST_VERSION
  209. #define PKG_USING_STM32H7_CMSIS_DRIVER
  210. #define PKG_USING_STM32H7_CMSIS_DRIVER_LATEST_VERSION
  211. /* end of STM32 HAL & SDK Drivers */
  212. /* Infineon HAL Packages */
  213. /* end of Infineon HAL Packages */
  214. /* Kendryte SDK */
  215. /* end of Kendryte SDK */
  216. /* WCH HAL & SDK Drivers */
  217. /* end of WCH HAL & SDK Drivers */
  218. /* AT32 HAL & SDK Drivers */
  219. /* end of AT32 HAL & SDK Drivers */
  220. /* HC32 DDL Drivers */
  221. /* end of HC32 DDL Drivers */
  222. /* NXP HAL & SDK Drivers */
  223. /* end of NXP HAL & SDK Drivers */
  224. /* NUVOTON Drivers */
  225. /* end of NUVOTON Drivers */
  226. /* GD32 Drivers */
  227. /* end of GD32 Drivers */
  228. /* end of HAL & SDK Drivers */
  229. /* sensors drivers */
  230. /* end of sensors drivers */
  231. /* touch drivers */
  232. /* end of touch drivers */
  233. /* end of peripheral libraries and drivers */
  234. /* AI packages */
  235. /* end of AI packages */
  236. /* Signal Processing and Control Algorithm Packages */
  237. /* end of Signal Processing and Control Algorithm Packages */
  238. /* miscellaneous packages */
  239. /* project laboratory */
  240. /* end of project laboratory */
  241. /* samples: kernel and components samples */
  242. /* end of samples: kernel and components samples */
  243. /* entertainment: terminal games and other interesting software packages */
  244. /* end of entertainment: terminal games and other interesting software packages */
  245. /* end of miscellaneous packages */
  246. /* Arduino libraries */
  247. /* Projects and Demos */
  248. /* end of Projects and Demos */
  249. /* Sensors */
  250. /* end of Sensors */
  251. /* Display */
  252. /* end of Display */
  253. /* Timing */
  254. /* end of Timing */
  255. /* Data Processing */
  256. /* end of Data Processing */
  257. /* Data Storage */
  258. /* Communication */
  259. /* end of Communication */
  260. /* Device Control */
  261. /* end of Device Control */
  262. /* Other */
  263. /* end of Other */
  264. /* Signal IO */
  265. /* end of Signal IO */
  266. /* Uncategorized */
  267. /* end of Arduino libraries */
  268. /* end of RT-Thread online packages */
  269. #define SOC_FAMILY_STM32
  270. #define SOC_SERIES_STM32H7
  271. /* Hardware Drivers Config */
  272. /* Onboard Peripheral Drivers */
  273. #define BSP_USING_QSPI_FLASH
  274. #define BSP_USING_LCD_SPI
  275. #define LCD_BACKLIGHT_USING_GPIO
  276. /* end of Onboard Peripheral Drivers */
  277. /* On-chip Peripheral Drivers */
  278. #define BSP_USING_GPIO
  279. #define BSP_USING_UART
  280. #define BSP_USING_UART1
  281. #define BSP_UART1_RX_BUFSIZE 256
  282. #define BSP_UART1_TX_BUFSIZE 256
  283. #define BSP_USING_QSPI
  284. #define BSP_USING_SPI
  285. #define BSP_USING_SPI1
  286. #define BSP_USING_SPI4
  287. #define BSP_USING_PWM
  288. #define BSP_USING_PWM1
  289. #define BSP_USING_PWM1_CH2
  290. #define BSP_USING_ON_CHIP_FLASH
  291. /* end of On-chip Peripheral Drivers */
  292. /* Board extended module Drivers */
  293. /* end of Hardware Drivers Config */
  294. #endif