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