1 #ifndef RT_CONFIG_H__ 2 #define RT_CONFIG_H__ 3 4 #define SOC_STM32H750VBT6 5 6 /* RT-Thread Kernel */ 7 8 /* klibc options */ 9 10 /* rt_vsnprintf options */ 11 12 /* end of rt_vsnprintf options */ 13 14 /* rt_vsscanf options */ 15 16 /* end of rt_vsscanf options */ 17 18 /* rt_memset options */ 19 20 /* end of rt_memset options */ 21 22 /* rt_memcpy options */ 23 24 /* end of rt_memcpy options */ 25 26 /* rt_memmove options */ 27 28 /* end of rt_memmove options */ 29 30 /* rt_memcmp options */ 31 32 /* end of rt_memcmp options */ 33 34 /* rt_strstr options */ 35 36 /* end of rt_strstr options */ 37 38 /* rt_strcasecmp options */ 39 40 /* end of rt_strcasecmp options */ 41 42 /* rt_strncpy options */ 43 44 /* end of rt_strncpy options */ 45 46 /* rt_strcpy options */ 47 48 /* end of rt_strcpy options */ 49 50 /* rt_strncmp options */ 51 52 /* end of rt_strncmp options */ 53 54 /* rt_strcmp options */ 55 56 /* end of rt_strcmp options */ 57 58 /* rt_strlen options */ 59 60 /* end of rt_strlen options */ 61 62 /* rt_strnlen options */ 63 64 /* end of rt_strnlen options */ 65 /* end of klibc options */ 66 #define RT_NAME_MAX 8 67 #define RT_CPUS_NR 1 68 #define RT_ALIGN_SIZE 8 69 #define RT_THREAD_PRIORITY_32 70 #define RT_THREAD_PRIORITY_MAX 32 71 #define RT_TICK_PER_SECOND 1000 72 #define RT_USING_OVERFLOW_CHECK 73 #define RT_USING_HOOK 74 #define RT_HOOK_USING_FUNC_PTR 75 #define RT_USING_IDLE_HOOK 76 #define RT_IDLE_HOOK_LIST_SIZE 4 77 #define IDLE_THREAD_STACK_SIZE 256 78 79 /* kservice options */ 80 81 /* end of kservice options */ 82 #define RT_USING_DEBUG 83 #define RT_DEBUGING_ASSERT 84 #define RT_DEBUGING_COLOR 85 #define RT_DEBUGING_CONTEXT 86 87 /* Inter-Thread communication */ 88 89 #define RT_USING_SEMAPHORE 90 #define RT_USING_MUTEX 91 #define RT_USING_EVENT 92 #define RT_USING_MAILBOX 93 #define RT_USING_MESSAGEQUEUE 94 /* end of Inter-Thread communication */ 95 96 /* Memory Management */ 97 98 #define RT_USING_MEMPOOL 99 #define RT_USING_MEMHEAP 100 #define RT_MEMHEAP_FAST_MODE 101 #define RT_USING_MEMHEAP_AS_HEAP 102 #define RT_USING_MEMHEAP_AUTO_BINDING 103 #define RT_USING_HEAP 104 /* end of Memory Management */ 105 #define RT_USING_DEVICE 106 #define RT_USING_CONSOLE 107 #define RT_CONSOLEBUF_SIZE 128 108 #define RT_CONSOLE_DEVICE_NAME "uart1" 109 #define RT_VER_NUM 0x50201 110 #define RT_BACKTRACE_LEVEL_MAX_NR 32 111 /* end of RT-Thread Kernel */ 112 #define RT_USING_CACHE 113 #define RT_USING_HW_ATOMIC 114 #define RT_USING_CPU_FFS 115 #define ARCH_ARM 116 #define ARCH_ARM_CORTEX_M 117 #define ARCH_ARM_CORTEX_M7 118 119 /* RT-Thread Components */ 120 121 #define RT_USING_COMPONENTS_INIT 122 #define RT_USING_USER_MAIN 123 #define RT_MAIN_THREAD_STACK_SIZE 2048 124 #define RT_MAIN_THREAD_PRIORITY 10 125 #define RT_USING_MSH 126 #define RT_USING_FINSH 127 #define FINSH_USING_MSH 128 #define FINSH_THREAD_NAME "tshell" 129 #define FINSH_THREAD_PRIORITY 20 130 #define FINSH_THREAD_STACK_SIZE 4096 131 #define FINSH_USING_HISTORY 132 #define FINSH_HISTORY_LINES 5 133 #define FINSH_USING_SYMTAB 134 #define FINSH_CMD_SIZE 80 135 #define MSH_USING_BUILT_IN_COMMANDS 136 #define FINSH_USING_DESCRIPTION 137 #define FINSH_ARG_MAX 10 138 #define FINSH_USING_OPTION_COMPLETION 139 140 /* DFS: device virtual file system */ 141 142 #define RT_USING_DFS 143 #define DFS_USING_POSIX 144 #define DFS_USING_WORKDIR 145 #define DFS_FD_MAX 16 146 #define RT_USING_DFS_V1 147 #define DFS_FILESYSTEMS_MAX 4 148 #define DFS_FILESYSTEM_TYPES_MAX 4 149 #define RT_USING_DFS_DEVFS 150 /* end of DFS: device virtual file system */ 151 152 /* Device Drivers */ 153 154 #define RT_USING_DEVICE_IPC 155 #define RT_UNAMED_PIPE_NUMBER 64 156 #define RT_USING_SERIAL 157 #define RT_USING_SERIAL_V2 158 #define RT_SERIAL_BUF_STRATEGY_OVERWRITE 159 #define RT_SERIAL_USING_DMA 160 #define RT_USING_I2C 161 #define RT_USING_I2C_BITOPS 162 #define RT_USING_RTC 163 #define RT_USING_SPI 164 #define RT_USING_QSPI 165 #define RT_USING_SFUD 166 #define RT_SFUD_USING_SFDP 167 #define RT_SFUD_USING_FLASH_INFO_TABLE 168 #define RT_SFUD_USING_QSPI 169 #define RT_SFUD_SPI_MAX_HZ 10000000 170 #define RT_USING_PIN 171 /* end of Device Drivers */ 172 173 /* C/C++ and POSIX layer */ 174 175 /* ISO-ANSI C layer */ 176 177 /* Timezone and Daylight Saving Time */ 178 179 #define RT_LIBC_USING_LIGHT_TZ_DST 180 #define RT_LIBC_TZ_DEFAULT_HOUR 8 181 #define RT_LIBC_TZ_DEFAULT_MIN 0 182 #define RT_LIBC_TZ_DEFAULT_SEC 0 183 /* end of Timezone and Daylight Saving Time */ 184 /* end of ISO-ANSI C layer */ 185 186 /* POSIX (Portable Operating System Interface) layer */ 187 188 189 /* Interprocess Communication (IPC) */ 190 191 192 /* Socket is in the 'Network' category */ 193 194 /* end of Interprocess Communication (IPC) */ 195 /* end of POSIX (Portable Operating System Interface) layer */ 196 /* end of C/C++ and POSIX layer */ 197 198 /* Network */ 199 200 /* end of Network */ 201 202 /* Memory protection */ 203 204 /* end of Memory protection */ 205 206 /* Utilities */ 207 208 /* end of Utilities */ 209 210 /* Using USB legacy version */ 211 212 /* end of Using USB legacy version */ 213 /* end of RT-Thread Components */ 214 215 /* RT-Thread Utestcases */ 216 217 /* end of RT-Thread Utestcases */ 218 219 /* RT-Thread online packages */ 220 221 /* IoT - internet of things */ 222 223 224 /* Wi-Fi */ 225 226 /* Marvell WiFi */ 227 228 /* end of Marvell WiFi */ 229 230 /* Wiced WiFi */ 231 232 /* end of Wiced WiFi */ 233 234 /* CYW43012 WiFi */ 235 236 /* end of CYW43012 WiFi */ 237 238 /* BL808 WiFi */ 239 240 /* end of BL808 WiFi */ 241 242 /* CYW43439 WiFi */ 243 244 /* end of CYW43439 WiFi */ 245 /* end of Wi-Fi */ 246 247 /* IoT Cloud */ 248 249 /* end of IoT Cloud */ 250 /* end of IoT - internet of things */ 251 252 /* security packages */ 253 254 /* end of security packages */ 255 256 /* language packages */ 257 258 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 259 260 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 261 262 /* XML: Extensible Markup Language */ 263 264 /* end of XML: Extensible Markup Language */ 265 /* end of language packages */ 266 267 /* multimedia packages */ 268 269 /* LVGL: powerful and easy-to-use embedded GUI library */ 270 271 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 272 273 /* u8g2: a monochrome graphic library */ 274 275 /* end of u8g2: a monochrome graphic library */ 276 /* end of multimedia packages */ 277 278 /* tools packages */ 279 280 /* end of tools packages */ 281 282 /* system packages */ 283 284 /* enhanced kernel services */ 285 286 /* end of enhanced kernel services */ 287 288 /* acceleration: Assembly language or algorithmic acceleration packages */ 289 290 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 291 292 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 293 294 #define PKG_USING_CMSIS_CORE 295 #define PKG_USING_CMSIS_CORE_LATEST_VERSION 296 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 297 298 /* Micrium: Micrium software products porting for RT-Thread */ 299 300 /* end of Micrium: Micrium software products porting for RT-Thread */ 301 /* end of system packages */ 302 303 /* peripheral libraries and drivers */ 304 305 /* HAL & SDK Drivers */ 306 307 /* STM32 HAL & SDK Drivers */ 308 309 #define PKG_USING_STM32H7_HAL_DRIVER 310 #define PKG_USING_STM32H7_HAL_DRIVER_LATEST_VERSION 311 #define PKG_USING_STM32H7_CMSIS_DRIVER 312 #define PKG_USING_STM32H7_CMSIS_DRIVER_LATEST_VERSION 313 /* end of STM32 HAL & SDK Drivers */ 314 315 /* Infineon HAL Packages */ 316 317 /* end of Infineon HAL Packages */ 318 319 /* Kendryte SDK */ 320 321 /* end of Kendryte SDK */ 322 323 /* WCH HAL & SDK Drivers */ 324 325 /* end of WCH HAL & SDK Drivers */ 326 327 /* AT32 HAL & SDK Drivers */ 328 329 /* end of AT32 HAL & SDK Drivers */ 330 331 /* HC32 DDL Drivers */ 332 333 /* end of HC32 DDL Drivers */ 334 335 /* NXP HAL & SDK Drivers */ 336 337 /* end of NXP HAL & SDK Drivers */ 338 339 /* NUVOTON Drivers */ 340 341 /* end of NUVOTON Drivers */ 342 343 /* GD32 Drivers */ 344 345 /* end of GD32 Drivers */ 346 /* end of HAL & SDK Drivers */ 347 348 /* sensors drivers */ 349 350 /* end of sensors drivers */ 351 352 /* touch drivers */ 353 354 /* end of touch drivers */ 355 /* end of peripheral libraries and drivers */ 356 357 /* AI packages */ 358 359 /* end of AI packages */ 360 361 /* Signal Processing and Control Algorithm Packages */ 362 363 /* end of Signal Processing and Control Algorithm Packages */ 364 365 /* miscellaneous packages */ 366 367 /* project laboratory */ 368 369 /* end of project laboratory */ 370 371 /* samples: kernel and components samples */ 372 373 /* end of samples: kernel and components samples */ 374 375 /* entertainment: terminal games and other interesting software packages */ 376 377 /* end of entertainment: terminal games and other interesting software packages */ 378 /* end of miscellaneous packages */ 379 380 /* Arduino libraries */ 381 382 383 /* Projects and Demos */ 384 385 /* end of Projects and Demos */ 386 387 /* Sensors */ 388 389 /* end of Sensors */ 390 391 /* Display */ 392 393 /* end of Display */ 394 395 /* Timing */ 396 397 /* end of Timing */ 398 399 /* Data Processing */ 400 401 /* end of Data Processing */ 402 403 /* Data Storage */ 404 405 /* Communication */ 406 407 /* end of Communication */ 408 409 /* Device Control */ 410 411 /* end of Device Control */ 412 413 /* Other */ 414 415 /* end of Other */ 416 417 /* Signal IO */ 418 419 /* end of Signal IO */ 420 421 /* Uncategorized */ 422 423 /* end of Arduino libraries */ 424 /* end of RT-Thread online packages */ 425 #define SOC_FAMILY_STM32 426 #define SOC_SERIES_STM32H7 427 428 /* Hardware Drivers Config */ 429 430 /* Onboard Peripheral Drivers */ 431 432 #define BSP_USING_LCD_SPI 433 /* end of Onboard Peripheral Drivers */ 434 435 /* On-chip Peripheral Drivers */ 436 437 #define BSP_USING_GPIO 438 #define BSP_USING_UART 439 #define BSP_USING_UART1 440 #define BSP_UART1_RX_BUFSIZE 256 441 #define BSP_UART1_TX_BUFSIZE 256 442 #define BSP_USING_SPI 443 #define BSP_USING_SPI4 444 /* end of On-chip Peripheral Drivers */ 445 446 /* Board extended module Drivers */ 447 448 /* end of Hardware Drivers Config */ 449 450 #endif 451