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