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