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 100 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 2048 76 #define RT_USING_TIMER_SOFT 77 #define RT_TIMER_THREAD_PRIO 4 78 #define RT_TIMER_THREAD_STACK_SIZE 2048 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 512 107 #define RT_CONSOLE_DEVICE_NAME "uart" 108 #define RT_VER_NUM 0x50201 109 #define RT_BACKTRACE_LEVEL_MAX_NR 32 110 /* end of RT-Thread Kernel */ 111 #define ARCH_MIPS 112 113 /* RT-Thread Components */ 114 115 #define RT_USING_COMPONENTS_INIT 116 #define RT_USING_USER_MAIN 117 #define RT_MAIN_THREAD_STACK_SIZE 2048 118 #define RT_MAIN_THREAD_PRIORITY 10 119 #define RT_USING_MSH 120 #define RT_USING_FINSH 121 #define FINSH_USING_MSH 122 #define FINSH_THREAD_NAME "tshell" 123 #define FINSH_THREAD_PRIORITY 20 124 #define FINSH_THREAD_STACK_SIZE 4096 125 #define FINSH_USING_HISTORY 126 #define FINSH_HISTORY_LINES 5 127 #define FINSH_USING_SYMTAB 128 #define FINSH_CMD_SIZE 80 129 #define MSH_USING_BUILT_IN_COMMANDS 130 #define FINSH_USING_DESCRIPTION 131 #define FINSH_ARG_MAX 10 132 #define FINSH_USING_OPTION_COMPLETION 133 134 /* DFS: device virtual file system */ 135 136 /* end of DFS: device virtual file system */ 137 138 /* Device Drivers */ 139 140 #define RT_USING_DEVICE_IPC 141 #define RT_UNAMED_PIPE_NUMBER 64 142 #define RT_USING_SERIAL 143 #define RT_USING_SERIAL_V1 144 #define RT_SERIAL_USING_DMA 145 #define RT_SERIAL_RB_BUFSZ 64 146 #define RT_USING_KTIME 147 /* end of Device Drivers */ 148 149 /* C/C++ and POSIX layer */ 150 151 /* ISO-ANSI C layer */ 152 153 /* Timezone and Daylight Saving Time */ 154 155 #define RT_LIBC_USING_LIGHT_TZ_DST 156 #define RT_LIBC_TZ_DEFAULT_HOUR 8 157 #define RT_LIBC_TZ_DEFAULT_MIN 0 158 #define RT_LIBC_TZ_DEFAULT_SEC 0 159 /* end of Timezone and Daylight Saving Time */ 160 /* end of ISO-ANSI C layer */ 161 162 /* POSIX (Portable Operating System Interface) layer */ 163 164 #define RT_USING_POSIX_DELAY 165 #define RT_USING_POSIX_CLOCK 166 #define RT_USING_PTHREADS 167 #define PTHREAD_NUM_MAX 8 168 169 /* Interprocess Communication (IPC) */ 170 171 172 /* Socket is in the 'Network' category */ 173 174 /* end of Interprocess Communication (IPC) */ 175 /* end of POSIX (Portable Operating System Interface) layer */ 176 /* end of C/C++ and POSIX layer */ 177 178 /* Network */ 179 180 /* end of Network */ 181 182 /* Memory protection */ 183 184 /* end of Memory protection */ 185 186 /* Utilities */ 187 188 #define RT_USING_UTEST 189 #define UTEST_THR_STACK_SIZE 4096 190 #define UTEST_THR_PRIORITY 20 191 /* end of Utilities */ 192 193 /* Using USB legacy version */ 194 195 /* end of Using USB legacy version */ 196 /* end of RT-Thread Components */ 197 198 /* RT-Thread Utestcases */ 199 200 /* end of RT-Thread Utestcases */ 201 202 /* RT-Thread MIPS CPU */ 203 204 /* end of RT-Thread MIPS CPU */ 205 206 /* RT-Thread online packages */ 207 208 /* IoT - internet of things */ 209 210 211 /* Wi-Fi */ 212 213 /* Marvell WiFi */ 214 215 /* end of Marvell WiFi */ 216 217 /* Wiced WiFi */ 218 219 /* end of Wiced WiFi */ 220 221 /* CYW43012 WiFi */ 222 223 /* end of CYW43012 WiFi */ 224 225 /* BL808 WiFi */ 226 227 /* end of BL808 WiFi */ 228 229 /* CYW43439 WiFi */ 230 231 /* end of CYW43439 WiFi */ 232 /* end of Wi-Fi */ 233 234 /* IoT Cloud */ 235 236 /* end of IoT Cloud */ 237 /* end of IoT - internet of things */ 238 239 /* security packages */ 240 241 /* end of security packages */ 242 243 /* language packages */ 244 245 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 246 247 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 248 249 /* XML: Extensible Markup Language */ 250 251 /* end of XML: Extensible Markup Language */ 252 /* end of language packages */ 253 254 /* multimedia packages */ 255 256 /* LVGL: powerful and easy-to-use embedded GUI library */ 257 258 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 259 260 /* u8g2: a monochrome graphic library */ 261 262 /* end of u8g2: a monochrome graphic library */ 263 /* end of multimedia packages */ 264 265 /* tools packages */ 266 267 /* end of tools packages */ 268 269 /* system packages */ 270 271 /* enhanced kernel services */ 272 273 /* end of enhanced kernel services */ 274 275 /* acceleration: Assembly language or algorithmic acceleration packages */ 276 277 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 278 279 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 280 281 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 282 283 /* Micrium: Micrium software products porting for RT-Thread */ 284 285 /* end of Micrium: Micrium software products porting for RT-Thread */ 286 /* end of system packages */ 287 288 /* peripheral libraries and drivers */ 289 290 /* HAL & SDK Drivers */ 291 292 /* STM32 HAL & SDK Drivers */ 293 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 /* end of HAL & SDK Drivers */ 320 321 /* sensors drivers */ 322 323 /* end of sensors drivers */ 324 325 /* touch drivers */ 326 327 /* end of touch drivers */ 328 /* end of peripheral libraries and drivers */ 329 330 /* AI packages */ 331 332 /* end of AI packages */ 333 334 /* Signal Processing and Control Algorithm Packages */ 335 336 /* end of Signal Processing and Control Algorithm Packages */ 337 338 /* miscellaneous packages */ 339 340 /* project laboratory */ 341 342 /* end of project laboratory */ 343 344 /* samples: kernel and components samples */ 345 346 /* end of samples: kernel and components samples */ 347 348 /* entertainment: terminal games and other interesting software packages */ 349 350 /* end of entertainment: terminal games and other interesting software packages */ 351 /* end of miscellaneous packages */ 352 353 /* Arduino libraries */ 354 355 356 /* Projects and Demos */ 357 358 /* end of Projects and Demos */ 359 360 /* Sensors */ 361 362 /* end of Sensors */ 363 364 /* Display */ 365 366 /* end of Display */ 367 368 /* Timing */ 369 370 /* end of Timing */ 371 372 /* Data Processing */ 373 374 /* end of Data Processing */ 375 376 /* Data Storage */ 377 378 /* Communication */ 379 380 /* end of Communication */ 381 382 /* Device Control */ 383 384 /* end of Device Control */ 385 386 /* Other */ 387 388 /* end of Other */ 389 390 /* Signal IO */ 391 392 /* end of Signal IO */ 393 394 /* Uncategorized */ 395 396 /* end of Arduino libraries */ 397 /* end of RT-Thread online packages */ 398 #define MIPSSIM 399 400 #endif 401