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