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