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