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