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