1 #ifndef RT_CONFIG_H__ 2 #define RT_CONFIG_H__ 3 4 /* RT-Thread Kernel */ 5 6 /* klibc options */ 7 8 /* rt_vsnprintf options */ 9 10 /* end of rt_vsnprintf options */ 11 12 /* rt_vsscanf options */ 13 14 /* end of rt_vsscanf options */ 15 16 /* rt_memset options */ 17 18 /* end of rt_memset options */ 19 20 /* rt_memcpy options */ 21 22 /* end of rt_memcpy options */ 23 24 /* rt_memmove options */ 25 26 /* end of rt_memmove options */ 27 28 /* rt_memcmp options */ 29 30 /* end of rt_memcmp options */ 31 32 /* rt_strstr options */ 33 34 /* end of rt_strstr options */ 35 36 /* rt_strcasecmp options */ 37 38 /* end of rt_strcasecmp options */ 39 40 /* rt_strncpy options */ 41 42 /* end of rt_strncpy options */ 43 44 /* rt_strcpy options */ 45 46 /* end of rt_strcpy options */ 47 48 /* rt_strncmp options */ 49 50 /* end of rt_strncmp options */ 51 52 /* rt_strcmp options */ 53 54 /* end of rt_strcmp options */ 55 56 /* rt_strlen options */ 57 58 /* end of rt_strlen options */ 59 60 /* rt_strnlen options */ 61 62 /* end of rt_strnlen options */ 63 /* end of klibc options */ 64 #define RT_NAME_MAX 8 65 #define RT_USING_SMP 66 #define RT_CPUS_NR 4 67 #define RT_ALIGN_SIZE 8 68 #define RT_THREAD_PRIORITY_32 69 #define RT_THREAD_PRIORITY_MAX 32 70 #define RT_TICK_PER_SECOND 100 71 #define RT_USING_OVERFLOW_CHECK 72 #define RT_USING_HOOK 73 #define RT_HOOK_USING_FUNC_PTR 74 #define RT_USING_IDLE_HOOK 75 #define RT_IDLE_HOOK_LIST_SIZE 4 76 #define IDLE_THREAD_STACK_SIZE 256 77 #define SYSTEM_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_MEMHEAP 101 #define RT_MEMHEAP_FAST_MODE 102 #define RT_USING_SMALL_MEM_AS_HEAP 103 #define RT_USING_MEMTRACE 104 #define RT_USING_HEAP 105 /* end of Memory Management */ 106 #define RT_USING_DEVICE 107 #define RT_USING_DEVICE_OPS 108 #define RT_USING_CONSOLE 109 #define RT_CONSOLEBUF_SIZE 128 110 #define RT_CONSOLE_DEVICE_NAME "uart1" 111 #define RT_VER_NUM 0x50201 112 #define RT_BACKTRACE_LEVEL_MAX_NR 32 113 /* end of RT-Thread Kernel */ 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 #define RT_USING_DFS 139 #define DFS_USING_POSIX 140 #define DFS_USING_WORKDIR 141 #define DFS_FD_MAX 16 142 #define RT_USING_DFS_V1 143 #define DFS_FILESYSTEMS_MAX 2 144 #define DFS_FILESYSTEM_TYPES_MAX 2 145 #define RT_USING_DFS_ELMFAT 146 147 /* elm-chan's FatFs, Generic FAT Filesystem Module */ 148 149 #define RT_DFS_ELM_CODE_PAGE 437 150 #define RT_DFS_ELM_WORD_ACCESS 151 #define RT_DFS_ELM_USE_LFN_3 152 #define RT_DFS_ELM_USE_LFN 3 153 #define RT_DFS_ELM_LFN_UNICODE_0 154 #define RT_DFS_ELM_LFN_UNICODE 0 155 #define RT_DFS_ELM_MAX_LFN 255 156 #define RT_DFS_ELM_DRIVES 2 157 #define RT_DFS_ELM_MAX_SECTOR_SIZE 512 158 #define RT_DFS_ELM_REENTRANT 159 #define RT_DFS_ELM_MUTEX_TIMEOUT 3000 160 /* end of elm-chan's FatFs, Generic FAT Filesystem Module */ 161 #define RT_USING_DFS_DEVFS 162 /* end of DFS: device virtual file system */ 163 164 /* Device Drivers */ 165 166 #define RT_USING_DEVICE_IPC 167 #define RT_UNAMED_PIPE_NUMBER 64 168 #define RT_USING_SERIAL 169 #define RT_USING_SERIAL_V1 170 #define RT_SERIAL_RB_BUFSZ 64 171 #define RT_USING_I2C 172 #define RT_USING_RTC 173 #define RT_USING_SDIO 174 #define RT_SDIO_STACK_SIZE 512 175 #define RT_SDIO_THREAD_PRIORITY 15 176 #define RT_MMCSD_STACK_SIZE 1024 177 #define RT_MMCSD_THREAD_PRIORITY 22 178 #define RT_MMCSD_MAX_PARTITION 16 179 #define RT_USING_SPI 180 #define RT_USING_WDT 181 #define RT_USING_BLK 182 183 /* Partition Types */ 184 185 #define RT_BLK_PARTITION_DFS 186 #define RT_BLK_PARTITION_EFI 187 /* end of Partition Types */ 188 #define RT_USING_PIN 189 #define RT_USING_HWTIMER 190 /* end of Device Drivers */ 191 192 /* C/C++ and POSIX layer */ 193 194 /* ISO-ANSI C layer */ 195 196 /* Timezone and Daylight Saving Time */ 197 198 #define RT_LIBC_USING_LIGHT_TZ_DST 199 #define RT_LIBC_TZ_DEFAULT_HOUR 8 200 #define RT_LIBC_TZ_DEFAULT_MIN 0 201 #define RT_LIBC_TZ_DEFAULT_SEC 0 202 /* end of Timezone and Daylight Saving Time */ 203 /* end of ISO-ANSI C layer */ 204 205 /* POSIX (Portable Operating System Interface) layer */ 206 207 208 /* Interprocess Communication (IPC) */ 209 210 211 /* Socket is in the 'Network' category */ 212 213 /* end of Interprocess Communication (IPC) */ 214 /* end of POSIX (Portable Operating System Interface) layer */ 215 /* end of C/C++ and POSIX layer */ 216 217 /* Network */ 218 219 /* end of Network */ 220 221 /* Memory protection */ 222 223 /* end of Memory protection */ 224 225 /* Utilities */ 226 227 #define RT_USING_ADT 228 #define RT_USING_ADT_AVL 229 #define RT_USING_ADT_BITMAP 230 #define RT_USING_ADT_HASHMAP 231 #define RT_USING_ADT_REF 232 /* end of Utilities */ 233 234 /* Using USB legacy version */ 235 236 /* end of Using USB legacy version */ 237 /* end of RT-Thread Components */ 238 239 /* RT-Thread Utestcases */ 240 241 /* end of RT-Thread Utestcases */ 242 243 /* RT-Thread online packages */ 244 245 /* IoT - internet of things */ 246 247 248 /* Wi-Fi */ 249 250 /* Marvell WiFi */ 251 252 /* end of Marvell WiFi */ 253 254 /* Wiced WiFi */ 255 256 /* end of Wiced WiFi */ 257 258 /* CYW43012 WiFi */ 259 260 /* end of CYW43012 WiFi */ 261 262 /* BL808 WiFi */ 263 264 /* end of BL808 WiFi */ 265 266 /* CYW43439 WiFi */ 267 268 /* end of CYW43439 WiFi */ 269 /* end of Wi-Fi */ 270 271 /* IoT Cloud */ 272 273 /* end of IoT Cloud */ 274 /* end of IoT - internet of things */ 275 276 /* security packages */ 277 278 /* end of security packages */ 279 280 /* language packages */ 281 282 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 283 284 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 285 286 /* XML: Extensible Markup Language */ 287 288 /* end of XML: Extensible Markup Language */ 289 /* end of language packages */ 290 291 /* multimedia packages */ 292 293 /* LVGL: powerful and easy-to-use embedded GUI library */ 294 295 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 296 297 /* u8g2: a monochrome graphic library */ 298 299 /* end of u8g2: a monochrome graphic library */ 300 /* end of multimedia packages */ 301 302 /* tools packages */ 303 304 /* end of tools packages */ 305 306 /* system packages */ 307 308 /* enhanced kernel services */ 309 310 /* end of enhanced kernel services */ 311 312 /* acceleration: Assembly language or algorithmic acceleration packages */ 313 314 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 315 316 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 317 318 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 319 320 /* Micrium: Micrium software products porting for RT-Thread */ 321 322 /* end of Micrium: Micrium software products porting for RT-Thread */ 323 /* end of system packages */ 324 325 /* peripheral libraries and drivers */ 326 327 /* HAL & SDK Drivers */ 328 329 /* STM32 HAL & SDK Drivers */ 330 331 /* end of STM32 HAL & SDK Drivers */ 332 333 /* Infineon HAL Packages */ 334 335 /* end of Infineon HAL Packages */ 336 337 /* Kendryte SDK */ 338 339 /* end of Kendryte SDK */ 340 341 /* WCH HAL & SDK Drivers */ 342 343 /* end of WCH HAL & SDK Drivers */ 344 345 /* AT32 HAL & SDK Drivers */ 346 347 /* end of AT32 HAL & SDK Drivers */ 348 349 /* HC32 DDL Drivers */ 350 351 /* end of HC32 DDL Drivers */ 352 353 /* NXP HAL & SDK Drivers */ 354 355 /* end of NXP HAL & SDK Drivers */ 356 /* end of HAL & SDK Drivers */ 357 358 /* sensors drivers */ 359 360 /* end of sensors drivers */ 361 362 /* touch drivers */ 363 364 /* end of touch drivers */ 365 /* end of peripheral libraries and drivers */ 366 367 /* AI packages */ 368 369 /* end of AI packages */ 370 371 /* Signal Processing and Control Algorithm Packages */ 372 373 /* end of Signal Processing and Control Algorithm Packages */ 374 375 /* miscellaneous packages */ 376 377 /* project laboratory */ 378 379 /* end of project laboratory */ 380 381 /* samples: kernel and components samples */ 382 383 /* end of samples: kernel and components samples */ 384 385 /* entertainment: terminal games and other interesting software packages */ 386 387 /* end of entertainment: terminal games and other interesting software packages */ 388 /* end of miscellaneous packages */ 389 390 /* Arduino libraries */ 391 392 393 /* Projects and Demos */ 394 395 /* end of Projects and Demos */ 396 397 /* Sensors */ 398 399 /* end of Sensors */ 400 401 /* Display */ 402 403 /* end of Display */ 404 405 /* Timing */ 406 407 /* end of Timing */ 408 409 /* Data Processing */ 410 411 /* end of Data Processing */ 412 413 /* Data Storage */ 414 415 /* Communication */ 416 417 /* end of Communication */ 418 419 /* Device Control */ 420 421 /* end of Device Control */ 422 423 /* Other */ 424 425 /* end of Other */ 426 427 /* Signal IO */ 428 429 /* end of Signal IO */ 430 431 /* Uncategorized */ 432 433 /* end of Arduino libraries */ 434 /* end of RT-Thread online packages */ 435 #define BCM2836_SOC 436 437 /* Hardware Drivers Config */ 438 439 /* BCM Peripheral Drivers */ 440 441 #define BSP_USING_UART 442 #define RT_USING_UART1 443 #define BSP_USING_PIN 444 #define BSP_USING_SYSTIMER 445 #define RT_USING_SYSTIMER1 446 #define RT_USING_SYSTIMER3 447 #define BSP_USING_I2C 448 #define BSP_USING_I2C0 449 #define BSP_USING_I2C1 450 #define BSP_USING_SPI 451 #define BSP_USING_SPI0_BUS 452 #define BSP_USING_SPI0_DEVICE0 453 #define BSP_USING_SPI0_DEVICE1 454 #define BSP_USING_WDT 455 #define BSP_USING_RTC 456 #define BSP_USING_SDIO 457 #define BSP_USING_SDIO0 458 #define BSP_USING_HDMI 459 /* end of BCM Peripheral Drivers */ 460 /* end of Hardware Drivers Config */ 461 462 #endif 463