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