1 #ifndef RT_CONFIG_H__ 2 #define RT_CONFIG_H__ 3 4 #define SOC_STM32H730VB 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_SMALL_MEM 100 #define RT_USING_SMALL_MEM_AS_HEAP 101 #define RT_USING_HEAP 102 /* end of Memory Management */ 103 #define RT_USING_DEVICE 104 #define RT_USING_CONSOLE 105 #define RT_CONSOLEBUF_SIZE 128 106 #define RT_CONSOLE_DEVICE_NAME "uart2" 107 #define RT_VER_NUM 0x50201 108 #define RT_BACKTRACE_LEVEL_MAX_NR 32 109 /* end of RT-Thread Kernel */ 110 #define RT_USING_CACHE 111 #define RT_USING_HW_ATOMIC 112 #define RT_USING_CPU_FFS 113 #define ARCH_ARM 114 #define ARCH_ARM_CORTEX_M 115 #define ARCH_ARM_CORTEX_M7 116 117 /* RT-Thread Components */ 118 119 #define RT_USING_COMPONENTS_INIT 120 #define RT_USING_USER_MAIN 121 #define RT_MAIN_THREAD_STACK_SIZE 2048 122 #define RT_MAIN_THREAD_PRIORITY 10 123 #define RT_USING_MSH 124 #define RT_USING_FINSH 125 #define FINSH_USING_MSH 126 #define FINSH_THREAD_NAME "tshell" 127 #define FINSH_THREAD_PRIORITY 20 128 #define FINSH_THREAD_STACK_SIZE 4096 129 #define FINSH_USING_HISTORY 130 #define FINSH_HISTORY_LINES 5 131 #define FINSH_USING_SYMTAB 132 #define FINSH_CMD_SIZE 80 133 #define MSH_USING_BUILT_IN_COMMANDS 134 #define FINSH_USING_DESCRIPTION 135 #define FINSH_ARG_MAX 10 136 #define FINSH_USING_OPTION_COMPLETION 137 138 /* DFS: device virtual file system */ 139 140 /* end of DFS: device virtual file system */ 141 142 /* Device Drivers */ 143 144 #define RT_USING_DEVICE_IPC 145 #define RT_UNAMED_PIPE_NUMBER 64 146 #define RT_USING_SERIAL 147 #define RT_USING_SERIAL_V2 148 #define RT_SERIAL_BUF_STRATEGY_OVERWRITE 149 #define RT_SERIAL_USING_DMA 150 #define RT_USING_PIN 151 /* end of Device Drivers */ 152 153 /* C/C++ and POSIX layer */ 154 155 /* ISO-ANSI C layer */ 156 157 /* Timezone and Daylight Saving Time */ 158 159 #define RT_LIBC_USING_LIGHT_TZ_DST 160 #define RT_LIBC_TZ_DEFAULT_HOUR 8 161 #define RT_LIBC_TZ_DEFAULT_MIN 0 162 #define RT_LIBC_TZ_DEFAULT_SEC 0 163 /* end of Timezone and Daylight Saving Time */ 164 /* end of ISO-ANSI C layer */ 165 166 /* POSIX (Portable Operating System Interface) layer */ 167 168 169 /* Interprocess Communication (IPC) */ 170 171 172 /* Socket is in the 'Network' category */ 173 174 /* end of Interprocess Communication (IPC) */ 175 /* end of POSIX (Portable Operating System Interface) layer */ 176 /* end of C/C++ and POSIX layer */ 177 178 /* Network */ 179 180 /* end of Network */ 181 182 /* Memory protection */ 183 184 /* end of Memory protection */ 185 186 /* Utilities */ 187 188 /* end of Utilities */ 189 190 /* Using USB legacy version */ 191 192 /* end of Using USB legacy version */ 193 /* end of RT-Thread Components */ 194 195 /* RT-Thread Utestcases */ 196 197 /* end of RT-Thread Utestcases */ 198 199 /* RT-Thread online packages */ 200 201 /* IoT - internet of things */ 202 203 204 /* Wi-Fi */ 205 206 /* Marvell WiFi */ 207 208 /* end of Marvell WiFi */ 209 210 /* Wiced WiFi */ 211 212 /* end of Wiced WiFi */ 213 214 /* CYW43012 WiFi */ 215 216 /* end of CYW43012 WiFi */ 217 218 /* BL808 WiFi */ 219 220 /* end of BL808 WiFi */ 221 222 /* CYW43439 WiFi */ 223 224 /* end of CYW43439 WiFi */ 225 /* end of Wi-Fi */ 226 227 /* IoT Cloud */ 228 229 /* end of IoT Cloud */ 230 /* end of IoT - internet of things */ 231 232 /* security packages */ 233 234 /* end of security packages */ 235 236 /* language packages */ 237 238 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 239 240 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 241 242 /* XML: Extensible Markup Language */ 243 244 /* end of XML: Extensible Markup Language */ 245 /* end of language packages */ 246 247 /* multimedia packages */ 248 249 /* LVGL: powerful and easy-to-use embedded GUI library */ 250 251 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 252 253 /* u8g2: a monochrome graphic library */ 254 255 /* end of u8g2: a monochrome graphic library */ 256 /* end of multimedia packages */ 257 258 /* tools packages */ 259 260 /* end of tools packages */ 261 262 /* system packages */ 263 264 /* enhanced kernel services */ 265 266 /* end of enhanced kernel services */ 267 268 /* acceleration: Assembly language or algorithmic acceleration packages */ 269 270 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 271 272 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 273 274 #define PKG_USING_CMSIS_CORE 275 #define PKG_USING_CMSIS_CORE_LATEST_VERSION 276 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 277 278 /* Micrium: Micrium software products porting for RT-Thread */ 279 280 /* end of Micrium: Micrium software products porting for RT-Thread */ 281 /* end of system packages */ 282 283 /* peripheral libraries and drivers */ 284 285 /* HAL & SDK Drivers */ 286 287 /* STM32 HAL & SDK Drivers */ 288 289 #define PKG_USING_STM32H7_HAL_DRIVER 290 #define PKG_USING_STM32H7_HAL_DRIVER_LATEST_VERSION 291 #define PKG_USING_STM32H7_CMSIS_DRIVER 292 #define PKG_USING_STM32H7_CMSIS_DRIVER_LATEST_VERSION 293 /* end of STM32 HAL & SDK Drivers */ 294 295 /* Infineon HAL Packages */ 296 297 /* end of Infineon HAL Packages */ 298 299 /* Kendryte SDK */ 300 301 /* end of Kendryte SDK */ 302 303 /* WCH HAL & SDK Drivers */ 304 305 /* end of WCH HAL & SDK Drivers */ 306 307 /* AT32 HAL & SDK Drivers */ 308 309 /* end of AT32 HAL & SDK Drivers */ 310 311 /* HC32 DDL Drivers */ 312 313 /* end of HC32 DDL Drivers */ 314 315 /* NXP HAL & SDK Drivers */ 316 317 /* end of NXP HAL & SDK Drivers */ 318 /* end of HAL & SDK Drivers */ 319 320 /* sensors drivers */ 321 322 /* end of sensors drivers */ 323 324 /* touch drivers */ 325 326 /* end of touch drivers */ 327 /* end of peripheral libraries and drivers */ 328 329 /* AI packages */ 330 331 /* end of AI packages */ 332 333 /* Signal Processing and Control Algorithm Packages */ 334 335 /* end of Signal Processing and Control Algorithm Packages */ 336 337 /* miscellaneous packages */ 338 339 /* project laboratory */ 340 341 /* end of project laboratory */ 342 343 /* samples: kernel and components samples */ 344 345 /* end of samples: kernel and components samples */ 346 347 /* entertainment: terminal games and other interesting software packages */ 348 349 /* end of entertainment: terminal games and other interesting software packages */ 350 /* end of miscellaneous packages */ 351 352 /* Arduino libraries */ 353 354 355 /* Projects and Demos */ 356 357 /* end of Projects and Demos */ 358 359 /* Sensors */ 360 361 /* end of Sensors */ 362 363 /* Display */ 364 365 /* end of Display */ 366 367 /* Timing */ 368 369 /* end of Timing */ 370 371 /* Data Processing */ 372 373 /* end of Data Processing */ 374 375 /* Data Storage */ 376 377 /* Communication */ 378 379 /* end of Communication */ 380 381 /* Device Control */ 382 383 /* end of Device Control */ 384 385 /* Other */ 386 387 /* end of Other */ 388 389 /* Signal IO */ 390 391 /* end of Signal IO */ 392 393 /* Uncategorized */ 394 395 /* end of Arduino libraries */ 396 /* end of RT-Thread online packages */ 397 #define SOC_FAMILY_STM32 398 #define SOC_SERIES_STM32H7 399 400 /* Hardware Drivers Config */ 401 402 /* Onboard Peripheral Drivers */ 403 404 /* On-chip Peripheral Drivers */ 405 406 #define BSP_SCB_ENABLE_I_CACHE 407 #define BSP_SCB_ENABLE_D_CACHE 408 #define BSP_USING_GPIO 409 #define BSP_USING_UART 410 #define BSP_USING_UART2 411 #define BSP_UART2_RX_BUFSIZE 256 412 #define BSP_UART2_TX_BUFSIZE 0 413 /* end of On-chip Peripheral Drivers */ 414 415 /* Board extended module Drivers */ 416 417 /* end of Hardware Drivers Config */ 418 419 #endif 420