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