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_CPUS_NR 1 66 #define RT_ALIGN_SIZE 8 67 #define RT_THREAD_PRIORITY_32 68 #define RT_THREAD_PRIORITY_MAX 32 69 #define RT_TICK_PER_SECOND 1000 70 #define RT_USING_OVERFLOW_CHECK 71 #define RT_USING_HOOK 72 #define RT_HOOK_USING_FUNC_PTR 73 #define RT_USING_IDLE_HOOK 74 #define RT_IDLE_HOOK_LIST_SIZE 4 75 #define IDLE_THREAD_STACK_SIZE 256 76 77 /* kservice options */ 78 79 /* end of kservice options */ 80 #define RT_USING_DEBUG 81 #define RT_DEBUGING_ASSERT 82 #define RT_DEBUGING_COLOR 83 #define RT_DEBUGING_CONTEXT 84 85 /* Inter-Thread communication */ 86 87 #define RT_USING_SEMAPHORE 88 #define RT_USING_MUTEX 89 #define RT_USING_EVENT 90 #define RT_USING_MAILBOX 91 #define RT_USING_MESSAGEQUEUE 92 /* end of Inter-Thread communication */ 93 94 /* Memory Management */ 95 96 #define RT_USING_MEMPOOL 97 #define RT_USING_SMALL_MEM 98 #define RT_USING_SMALL_MEM_AS_HEAP 99 #define RT_USING_HEAP 100 /* end of Memory Management */ 101 #define RT_USING_DEVICE 102 #define RT_USING_CONSOLE 103 #define RT_CONSOLEBUF_SIZE 128 104 #define RT_CONSOLE_DEVICE_NAME "uart0" 105 #define RT_VER_NUM 0x50201 106 #define RT_BACKTRACE_LEVEL_MAX_NR 32 107 /* end of RT-Thread Kernel */ 108 #define RT_USING_HW_ATOMIC 109 #define RT_USING_CPU_FFS 110 #define ARCH_ARM 111 #define ARCH_ARM_CORTEX_M 112 #define ARCH_ARM_CORTEX_M4 113 114 /* RT-Thread Components */ 115 116 #define RT_USING_COMPONENTS_INIT 117 #define RT_USING_USER_MAIN 118 #define RT_MAIN_THREAD_STACK_SIZE 2048 119 #define RT_MAIN_THREAD_PRIORITY 10 120 #define RT_USING_MSH 121 #define RT_USING_FINSH 122 #define FINSH_USING_MSH 123 #define FINSH_THREAD_NAME "tshell" 124 #define FINSH_THREAD_PRIORITY 20 125 #define FINSH_THREAD_STACK_SIZE 4096 126 #define FINSH_USING_HISTORY 127 #define FINSH_HISTORY_LINES 5 128 #define FINSH_USING_SYMTAB 129 #define FINSH_CMD_SIZE 80 130 #define MSH_USING_BUILT_IN_COMMANDS 131 #define FINSH_USING_DESCRIPTION 132 #define FINSH_ARG_MAX 10 133 #define FINSH_USING_OPTION_COMPLETION 134 135 /* DFS: device virtual file system */ 136 137 #define RT_USING_DFS 138 #define DFS_USING_POSIX 139 #define DFS_USING_WORKDIR 140 #define DFS_FD_MAX 16 141 #define RT_USING_DFS_V1 142 #define DFS_FILESYSTEMS_MAX 4 143 #define DFS_FILESYSTEM_TYPES_MAX 4 144 #define RT_USING_DFS_ELMFAT 145 146 /* elm-chan's FatFs, Generic FAT Filesystem Module */ 147 148 #define RT_DFS_ELM_CODE_PAGE 437 149 #define RT_DFS_ELM_WORD_ACCESS 150 #define RT_DFS_ELM_USE_LFN_3 151 #define RT_DFS_ELM_USE_LFN 3 152 #define RT_DFS_ELM_LFN_UNICODE_0 153 #define RT_DFS_ELM_LFN_UNICODE 0 154 #define RT_DFS_ELM_MAX_LFN 255 155 #define RT_DFS_ELM_DRIVES 2 156 #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096 157 #define RT_DFS_ELM_REENTRANT 158 #define RT_DFS_ELM_MUTEX_TIMEOUT 3000 159 /* end of elm-chan's FatFs, Generic FAT Filesystem Module */ 160 #define RT_USING_DFS_DEVFS 161 #define RT_USING_DFS_ROMFS 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_USING_DMA 171 #define RT_SERIAL_RB_BUFSZ 64 172 #define RT_USING_I2C 173 #define RT_USING_I2C_BITOPS 174 #define RT_USING_SPI 175 #define RT_USING_SPI_MSD 176 #define RT_USING_SFUD 177 #define RT_SFUD_USING_FLASH_INFO_TABLE 178 #define RT_SFUD_SPI_MAX_HZ 50000000 179 #define RT_USING_PIN 180 /* end of Device Drivers */ 181 182 /* C/C++ and POSIX layer */ 183 184 /* ISO-ANSI C layer */ 185 186 /* Timezone and Daylight Saving Time */ 187 188 #define RT_LIBC_USING_LIGHT_TZ_DST 189 #define RT_LIBC_TZ_DEFAULT_HOUR 8 190 #define RT_LIBC_TZ_DEFAULT_MIN 0 191 #define RT_LIBC_TZ_DEFAULT_SEC 0 192 /* end of Timezone and Daylight Saving Time */ 193 /* end of ISO-ANSI C layer */ 194 195 /* POSIX (Portable Operating System Interface) layer */ 196 197 198 /* Interprocess Communication (IPC) */ 199 200 201 /* Socket is in the 'Network' category */ 202 203 /* end of Interprocess Communication (IPC) */ 204 /* end of POSIX (Portable Operating System Interface) layer */ 205 /* end of C/C++ and POSIX layer */ 206 207 /* Network */ 208 209 /* end of Network */ 210 211 /* Memory protection */ 212 213 /* end of Memory protection */ 214 215 /* Utilities */ 216 217 /* end of Utilities */ 218 219 /* Using USB legacy version */ 220 221 /* end of Using USB legacy version */ 222 /* end of RT-Thread Components */ 223 224 /* RT-Thread Utestcases */ 225 226 /* end of RT-Thread Utestcases */ 227 228 /* RT-Thread online packages */ 229 230 /* IoT - internet of things */ 231 232 233 /* Wi-Fi */ 234 235 /* Marvell WiFi */ 236 237 /* end of Marvell WiFi */ 238 239 /* Wiced WiFi */ 240 241 /* end of Wiced WiFi */ 242 243 /* CYW43012 WiFi */ 244 245 /* end of CYW43012 WiFi */ 246 247 /* BL808 WiFi */ 248 249 /* end of BL808 WiFi */ 250 251 /* CYW43439 WiFi */ 252 253 /* end of CYW43439 WiFi */ 254 /* end of Wi-Fi */ 255 256 /* IoT Cloud */ 257 258 /* end of IoT Cloud */ 259 /* end of IoT - internet of things */ 260 261 /* security packages */ 262 263 /* end of security packages */ 264 265 /* language packages */ 266 267 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 268 269 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 270 271 /* XML: Extensible Markup Language */ 272 273 /* end of XML: Extensible Markup Language */ 274 /* end of language packages */ 275 276 /* multimedia packages */ 277 278 /* LVGL: powerful and easy-to-use embedded GUI library */ 279 280 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 281 282 /* u8g2: a monochrome graphic library */ 283 284 /* end of u8g2: a monochrome graphic library */ 285 /* end of multimedia packages */ 286 287 /* tools packages */ 288 289 /* end of tools packages */ 290 291 /* system packages */ 292 293 /* enhanced kernel services */ 294 295 /* end of enhanced kernel services */ 296 297 /* acceleration: Assembly language or algorithmic acceleration packages */ 298 299 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 300 301 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 302 303 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 304 305 /* Micrium: Micrium software products porting for RT-Thread */ 306 307 /* end of Micrium: Micrium software products porting for RT-Thread */ 308 /* end of system packages */ 309 310 /* peripheral libraries and drivers */ 311 312 /* HAL & SDK Drivers */ 313 314 /* STM32 HAL & SDK Drivers */ 315 316 /* end of STM32 HAL & SDK Drivers */ 317 318 /* Infineon HAL Packages */ 319 320 /* end of Infineon HAL Packages */ 321 322 /* Kendryte SDK */ 323 324 /* end of Kendryte SDK */ 325 326 /* WCH HAL & SDK Drivers */ 327 328 /* end of WCH HAL & SDK Drivers */ 329 330 /* AT32 HAL & SDK Drivers */ 331 332 /* end of AT32 HAL & SDK Drivers */ 333 334 /* HC32 DDL Drivers */ 335 336 /* end of HC32 DDL Drivers */ 337 338 /* NXP HAL & SDK Drivers */ 339 340 #define PKG_USING_NXP_LPC_DRIVER 341 #define PKG_USING_NXP_LPC_DRIVER_LATEST_VERSION 342 /* end of NXP HAL & SDK Drivers */ 343 /* end of HAL & SDK Drivers */ 344 345 /* sensors drivers */ 346 347 /* end of sensors drivers */ 348 349 /* touch drivers */ 350 351 /* end of touch drivers */ 352 /* end of peripheral libraries and drivers */ 353 354 /* AI packages */ 355 356 /* end of AI packages */ 357 358 /* Signal Processing and Control Algorithm Packages */ 359 360 /* end of Signal Processing and Control Algorithm Packages */ 361 362 /* miscellaneous packages */ 363 364 /* project laboratory */ 365 366 /* end of project laboratory */ 367 368 /* samples: kernel and components samples */ 369 370 /* end of samples: kernel and components samples */ 371 372 /* entertainment: terminal games and other interesting software packages */ 373 374 /* end of entertainment: terminal games and other interesting software packages */ 375 /* end of miscellaneous packages */ 376 377 /* Arduino libraries */ 378 379 380 /* Projects and Demos */ 381 382 /* end of Projects and Demos */ 383 384 /* Sensors */ 385 386 /* end of Sensors */ 387 388 /* Display */ 389 390 /* end of Display */ 391 392 /* Timing */ 393 394 /* end of Timing */ 395 396 /* Data Processing */ 397 398 /* end of Data Processing */ 399 400 /* Data Storage */ 401 402 /* Communication */ 403 404 /* end of Communication */ 405 406 /* Device Control */ 407 408 /* end of Device Control */ 409 410 /* Other */ 411 412 /* end of Other */ 413 414 /* Signal IO */ 415 416 /* end of Signal IO */ 417 418 /* Uncategorized */ 419 420 /* end of Arduino libraries */ 421 /* end of RT-Thread online packages */ 422 #define SOC_LPC54114 423 424 /* LPC54110 Bsp Config */ 425 426 /* Select uart drivers */ 427 428 #define BSP_USING_UART0 429 /* end of Select uart drivers */ 430 431 /* Select spi bus drivers */ 432 433 #define BSP_USING_SPI2 434 /* end of Select spi bus drivers */ 435 436 /* Select i2c bus drivers */ 437 438 #define BSP_USING_I2C4 439 /* end of Select i2c bus drivers */ 440 #define BSP_USING_ROMFS 441 #define BSP_USING_SDCARD 442 #define BSP_USING_SPIFLASH 443 /* end of LPC54110 Bsp Config */ 444 445 #endif 446