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