1 #ifndef RT_CONFIG_H__ 2 #define RT_CONFIG_H__ 3 4 #define SOC_MCX 5 6 /* RT-Thread Kernel */ 7 8 /* klibc options */ 9 10 /* rt_vsnprintf options */ 11 12 #define RT_KLIBC_USING_VSNPRINTF_LONGLONG 13 #define RT_KLIBC_USING_VSNPRINTF_STANDARD 14 #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS 15 #define RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS 16 #define RT_KLIBC_USING_VSNPRINTF_WRITEBACK_SPECIFIER 17 #define RT_KLIBC_USING_VSNPRINTF_CHECK_NUL_IN_FORMAT_SPECIFIER 18 #define RT_KLIBC_USING_VSNPRINTF_INTEGER_BUFFER_SIZE 32 19 #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_BUFFER_SIZE 32 20 #define RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION 6 21 #define RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9 22 #define RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS 4 23 /* end of rt_vsnprintf options */ 24 25 /* rt_vsscanf options */ 26 27 /* end of rt_vsscanf options */ 28 29 /* rt_memset options */ 30 31 /* end of rt_memset options */ 32 33 /* rt_memcpy options */ 34 35 /* end of rt_memcpy options */ 36 37 /* rt_memmove options */ 38 39 /* end of rt_memmove options */ 40 41 /* rt_memcmp options */ 42 43 /* end of rt_memcmp options */ 44 45 /* rt_strstr options */ 46 47 /* end of rt_strstr options */ 48 49 /* rt_strcasecmp options */ 50 51 /* end of rt_strcasecmp options */ 52 53 /* rt_strncpy options */ 54 55 /* end of rt_strncpy options */ 56 57 /* rt_strcpy options */ 58 59 /* end of rt_strcpy options */ 60 61 /* rt_strncmp options */ 62 63 /* end of rt_strncmp options */ 64 65 /* rt_strcmp options */ 66 67 /* end of rt_strcmp options */ 68 69 /* rt_strlen options */ 70 71 /* end of rt_strlen options */ 72 73 /* rt_strnlen options */ 74 75 /* end of rt_strnlen options */ 76 /* end of klibc options */ 77 #define RT_NAME_MAX 8 78 #define RT_CPUS_NR 1 79 #define RT_ALIGN_SIZE 8 80 #define RT_THREAD_PRIORITY_32 81 #define RT_THREAD_PRIORITY_MAX 32 82 #define RT_TICK_PER_SECOND 1000 83 #define RT_USING_OVERFLOW_CHECK 84 #define RT_USING_HOOK 85 #define RT_HOOK_USING_FUNC_PTR 86 #define RT_USING_IDLE_HOOK 87 #define RT_IDLE_HOOK_LIST_SIZE 4 88 #define IDLE_THREAD_STACK_SIZE 256 89 #define RT_USING_TIMER_SOFT 90 #define RT_TIMER_THREAD_PRIO 4 91 #define RT_TIMER_THREAD_STACK_SIZE 512 92 93 /* kservice options */ 94 95 /* end of kservice options */ 96 #define RT_USING_DEBUG 97 #define RT_DEBUGING_ASSERT 98 #define RT_DEBUGING_COLOR 99 #define RT_DEBUGING_CONTEXT 100 101 /* Inter-Thread communication */ 102 103 #define RT_USING_SEMAPHORE 104 #define RT_USING_MUTEX 105 #define RT_USING_EVENT 106 #define RT_USING_MAILBOX 107 #define RT_USING_MESSAGEQUEUE 108 /* end of Inter-Thread communication */ 109 110 /* Memory Management */ 111 112 #define RT_USING_MEMPOOL 113 #define RT_USING_SMALL_MEM 114 #define RT_USING_SMALL_MEM_AS_HEAP 115 #define RT_USING_HEAP 116 /* end of Memory Management */ 117 #define RT_USING_DEVICE 118 #define RT_USING_CONSOLE 119 #define RT_CONSOLEBUF_SIZE 128 120 #define RT_CONSOLE_DEVICE_NAME "uart0" 121 #define RT_VER_NUM 0x50201 122 #define RT_BACKTRACE_LEVEL_MAX_NR 32 123 /* end of RT-Thread Kernel */ 124 #define RT_USING_HW_ATOMIC 125 #define RT_USING_CPU_FFS 126 #define ARCH_ARM 127 #define ARCH_ARM_CORTEX_M 128 #define ARCH_ARM_CORTEX_FPU 129 #define ARCH_ARM_CORTEX_M33 130 131 /* RT-Thread Components */ 132 133 #define RT_USING_COMPONENTS_INIT 134 #define RT_USING_USER_MAIN 135 #define RT_MAIN_THREAD_STACK_SIZE 2048 136 #define RT_MAIN_THREAD_PRIORITY 10 137 #define RT_USING_MSH 138 #define RT_USING_FINSH 139 #define FINSH_USING_MSH 140 #define FINSH_THREAD_NAME "tshell" 141 #define FINSH_THREAD_PRIORITY 20 142 #define FINSH_THREAD_STACK_SIZE 4096 143 #define FINSH_USING_HISTORY 144 #define FINSH_HISTORY_LINES 5 145 #define FINSH_USING_SYMTAB 146 #define FINSH_CMD_SIZE 80 147 #define MSH_USING_BUILT_IN_COMMANDS 148 #define FINSH_USING_DESCRIPTION 149 #define FINSH_ARG_MAX 10 150 #define FINSH_USING_OPTION_COMPLETION 151 152 /* DFS: device virtual file system */ 153 154 /* end of DFS: device virtual file system */ 155 156 /* Device Drivers */ 157 158 #define RT_USING_DEVICE_IPC 159 #define RT_UNAMED_PIPE_NUMBER 64 160 #define RT_USING_SERIAL 161 #define RT_USING_SERIAL_V1 162 #define RT_SERIAL_USING_DMA 163 #define RT_SERIAL_RB_BUFSZ 64 164 #define RT_USING_PIN 165 #define RT_USING_HWTIMER 166 /* end of Device Drivers */ 167 168 /* C/C++ and POSIX layer */ 169 170 /* ISO-ANSI C layer */ 171 172 /* Timezone and Daylight Saving Time */ 173 174 #define RT_LIBC_USING_LIGHT_TZ_DST 175 #define RT_LIBC_TZ_DEFAULT_HOUR 8 176 #define RT_LIBC_TZ_DEFAULT_MIN 0 177 #define RT_LIBC_TZ_DEFAULT_SEC 0 178 /* end of Timezone and Daylight Saving Time */ 179 /* end of ISO-ANSI C layer */ 180 181 /* POSIX (Portable Operating System Interface) layer */ 182 183 184 /* Interprocess Communication (IPC) */ 185 186 187 /* Socket is in the 'Network' category */ 188 189 /* end of Interprocess Communication (IPC) */ 190 /* end of POSIX (Portable Operating System Interface) layer */ 191 /* end of C/C++ and POSIX layer */ 192 193 /* Network */ 194 195 /* end of Network */ 196 197 /* Memory protection */ 198 199 /* end of Memory protection */ 200 201 /* Utilities */ 202 203 #define RT_USING_ULOG 204 #define ULOG_OUTPUT_LVL_D 205 #define ULOG_OUTPUT_LVL 7 206 #define ULOG_ASSERT_ENABLE 207 #define ULOG_LINE_BUF_SIZE 128 208 209 /* log format */ 210 211 #define ULOG_OUTPUT_FLOAT 212 #define ULOG_OUTPUT_LEVEL 213 #define ULOG_OUTPUT_TAG 214 /* end of log format */ 215 #define ULOG_BACKEND_USING_CONSOLE 216 /* end of Utilities */ 217 218 /* Using USB legacy version */ 219 220 /* end of Using USB legacy version */ 221 /* end of RT-Thread Components */ 222 223 /* RT-Thread Utestcases */ 224 225 /* end of RT-Thread Utestcases */ 226 227 /* RT-Thread online packages */ 228 229 /* IoT - internet of things */ 230 231 232 /* Wi-Fi */ 233 234 /* Marvell WiFi */ 235 236 /* end of Marvell WiFi */ 237 238 /* Wiced WiFi */ 239 240 /* end of Wiced WiFi */ 241 242 /* CYW43012 WiFi */ 243 244 /* end of CYW43012 WiFi */ 245 246 /* BL808 WiFi */ 247 248 /* end of BL808 WiFi */ 249 250 /* CYW43439 WiFi */ 251 252 /* end of CYW43439 WiFi */ 253 /* end of Wi-Fi */ 254 255 /* IoT Cloud */ 256 257 /* end of IoT Cloud */ 258 /* end of IoT - internet of things */ 259 260 /* security packages */ 261 262 /* end of security packages */ 263 264 /* language packages */ 265 266 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 267 268 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 269 270 /* XML: Extensible Markup Language */ 271 272 /* end of XML: Extensible Markup Language */ 273 /* end of language packages */ 274 275 /* multimedia packages */ 276 277 /* LVGL: powerful and easy-to-use embedded GUI library */ 278 279 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 280 281 /* u8g2: a monochrome graphic library */ 282 283 /* end of u8g2: a monochrome graphic library */ 284 /* end of multimedia packages */ 285 286 /* tools packages */ 287 288 /* end of tools packages */ 289 290 /* system packages */ 291 292 /* enhanced kernel services */ 293 294 /* end of enhanced kernel services */ 295 296 /* acceleration: Assembly language or algorithmic acceleration packages */ 297 298 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 299 300 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 301 302 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 303 304 /* Micrium: Micrium software products porting for RT-Thread */ 305 306 /* end of Micrium: Micrium software products porting for RT-Thread */ 307 /* end of system packages */ 308 309 /* peripheral libraries and drivers */ 310 311 /* HAL & SDK Drivers */ 312 313 /* STM32 HAL & SDK Drivers */ 314 315 /* end of STM32 HAL & SDK Drivers */ 316 317 /* Infineon HAL Packages */ 318 319 /* end of Infineon HAL Packages */ 320 321 /* Kendryte SDK */ 322 323 /* end of Kendryte SDK */ 324 325 /* WCH HAL & SDK Drivers */ 326 327 /* end of WCH HAL & SDK Drivers */ 328 329 /* AT32 HAL & SDK Drivers */ 330 331 /* end of AT32 HAL & SDK Drivers */ 332 333 /* HC32 DDL Drivers */ 334 335 /* end of HC32 DDL Drivers */ 336 337 /* NXP HAL & SDK Drivers */ 338 339 #define PKG_USING_NXP_MCX_CMSIS_DRIVER 340 #define PKG_USING_NXP_MCX_CMSIS_DRIVER_LATEST_VERSION 341 #define PKG_USING_NXP_MCX_SERIES_DRIVER 342 #define PKG_USING_NXP_MCX_SERIES_DRIVER_LATEST_VERSION 343 /* end of NXP HAL & SDK Drivers */ 344 /* end of HAL & SDK Drivers */ 345 346 /* sensors drivers */ 347 348 /* end of sensors drivers */ 349 350 /* touch drivers */ 351 352 /* end of touch drivers */ 353 /* end of peripheral libraries and drivers */ 354 355 /* AI packages */ 356 357 /* end of AI packages */ 358 359 /* Signal Processing and Control Algorithm Packages */ 360 361 /* end of Signal Processing and Control Algorithm Packages */ 362 363 /* miscellaneous packages */ 364 365 /* project laboratory */ 366 367 /* end of project laboratory */ 368 369 /* samples: kernel and components samples */ 370 371 /* end of samples: kernel and components samples */ 372 373 /* entertainment: terminal games and other interesting software packages */ 374 375 /* end of entertainment: terminal games and other interesting software packages */ 376 /* end of miscellaneous packages */ 377 378 /* Arduino libraries */ 379 380 381 /* Projects and Demos */ 382 383 /* end of Projects and Demos */ 384 385 /* Sensors */ 386 387 /* end of Sensors */ 388 389 /* Display */ 390 391 /* end of Display */ 392 393 /* Timing */ 394 395 /* end of Timing */ 396 397 /* Data Processing */ 398 399 /* end of Data Processing */ 400 401 /* Data Storage */ 402 403 /* Communication */ 404 405 /* end of Communication */ 406 407 /* Device Control */ 408 409 /* end of Device Control */ 410 411 /* Other */ 412 413 /* end of Other */ 414 415 /* Signal IO */ 416 417 /* end of Signal IO */ 418 419 /* Uncategorized */ 420 421 /* end of Arduino libraries */ 422 /* end of RT-Thread online packages */ 423 424 /* Hardware Drivers Config */ 425 426 #define SOC_MCXA156 427 428 /* On-chip Peripheral Drivers */ 429 430 #define BSP_USING_PIN 431 #define BSP_USING_UART 432 #define BSP_USING_UART0 433 /* end of On-chip Peripheral Drivers */ 434 435 /* Board extended module Drivers */ 436 437 /* end of Board extended module Drivers */ 438 /* end of Hardware Drivers Config */ 439 440 #endif 441