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 20 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 512 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_SLAB 101 #define RT_USING_SLAB_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 #define RT_USING_CACHE 112 113 /* RT-Thread Components */ 114 115 #define RT_USING_COMPONENTS_INIT 116 #define RT_USING_USER_MAIN 117 #define RT_MAIN_THREAD_STACK_SIZE 2048 118 #define RT_MAIN_THREAD_PRIORITY 10 119 #define RT_USING_MSH 120 #define RT_USING_FINSH 121 #define FINSH_USING_MSH 122 #define FINSH_THREAD_NAME "tshell" 123 #define FINSH_THREAD_PRIORITY 20 124 #define FINSH_THREAD_STACK_SIZE 4096 125 #define FINSH_USING_HISTORY 126 #define FINSH_HISTORY_LINES 5 127 #define FINSH_USING_SYMTAB 128 #define FINSH_CMD_SIZE 80 129 #define MSH_USING_BUILT_IN_COMMANDS 130 #define FINSH_USING_DESCRIPTION 131 #define FINSH_ARG_MAX 10 132 #define FINSH_USING_OPTION_COMPLETION 133 134 /* DFS: device virtual file system */ 135 136 #define RT_USING_DFS 137 #define DFS_USING_POSIX 138 #define DFS_USING_WORKDIR 139 #define DFS_FD_MAX 16 140 #define RT_USING_DFS_V1 141 #define DFS_FILESYSTEMS_MAX 2 142 #define DFS_FILESYSTEM_TYPES_MAX 2 143 #define RT_USING_DFS_ELMFAT 144 145 /* elm-chan's FatFs, Generic FAT Filesystem Module */ 146 147 #define RT_DFS_ELM_CODE_PAGE 437 148 #define RT_DFS_ELM_WORD_ACCESS 149 #define RT_DFS_ELM_USE_LFN_3 150 #define RT_DFS_ELM_USE_LFN 3 151 #define RT_DFS_ELM_LFN_UNICODE_0 152 #define RT_DFS_ELM_LFN_UNICODE 0 153 #define RT_DFS_ELM_MAX_LFN 255 154 #define RT_DFS_ELM_DRIVES 2 155 #define RT_DFS_ELM_MAX_SECTOR_SIZE 512 156 #define RT_DFS_ELM_REENTRANT 157 #define RT_DFS_ELM_MUTEX_TIMEOUT 3000 158 /* end of elm-chan's FatFs, Generic FAT Filesystem Module */ 159 #define RT_USING_DFS_DEVFS 160 /* end of DFS: device virtual file system */ 161 162 /* Device Drivers */ 163 164 #define RT_USING_DEVICE_IPC 165 #define RT_UNAMED_PIPE_NUMBER 64 166 #define RT_USING_SYSTEM_WORKQUEUE 167 #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048 168 #define RT_SYSTEM_WORKQUEUE_PRIORITY 23 169 #define RT_USING_SERIAL 170 #define RT_USING_SERIAL_V1 171 #define RT_SERIAL_USING_DMA 172 #define RT_SERIAL_RB_BUFSZ 64 173 #define RT_USING_PIN 174 #define RT_LWIP_PBUF_POOL_BUFSIZE 1700 175 /* end of Device Drivers */ 176 177 /* C/C++ and POSIX layer */ 178 179 /* ISO-ANSI C layer */ 180 181 /* Timezone and Daylight Saving Time */ 182 183 #define RT_LIBC_USING_LIGHT_TZ_DST 184 #define RT_LIBC_TZ_DEFAULT_HOUR 8 185 #define RT_LIBC_TZ_DEFAULT_MIN 0 186 #define RT_LIBC_TZ_DEFAULT_SEC 0 187 /* end of Timezone and Daylight Saving Time */ 188 /* end of ISO-ANSI C layer */ 189 190 /* POSIX (Portable Operating System Interface) layer */ 191 192 #define RT_USING_POSIX_FS 193 #define RT_USING_POSIX_POLL 194 #define RT_USING_POSIX_SELECT 195 196 /* Interprocess Communication (IPC) */ 197 198 199 /* Socket is in the 'Network' category */ 200 201 /* end of Interprocess Communication (IPC) */ 202 /* end of POSIX (Portable Operating System Interface) layer */ 203 /* end of C/C++ and POSIX layer */ 204 205 /* Network */ 206 207 #define RT_USING_SAL 208 #define SAL_INTERNET_CHECK 209 210 /* Docking with protocol stacks */ 211 212 #define SAL_USING_LWIP 213 /* end of Docking with protocol stacks */ 214 #define SAL_USING_POSIX 215 #define RT_USING_NETDEV 216 #define NETDEV_USING_IFCONFIG 217 #define NETDEV_USING_PING 218 #define NETDEV_USING_NETSTAT 219 #define NETDEV_USING_AUTO_DEFAULT 220 #define NETDEV_IPV4 1 221 #define NETDEV_IPV6 0 222 #define RT_USING_LWIP 223 #define RT_USING_LWIP203 224 #define RT_USING_LWIP_VER_NUM 0x20003 225 #define RT_LWIP_MEM_ALIGNMENT 32 226 #define RT_LWIP_IGMP 227 #define RT_LWIP_ICMP 228 #define RT_LWIP_DNS 229 #define RT_LWIP_DHCP 230 #define IP_SOF_BROADCAST 1 231 #define IP_SOF_BROADCAST_RECV 1 232 233 /* Static IPv4 Address */ 234 235 #define RT_LWIP_IPADDR "192.168.1.30" 236 #define RT_LWIP_GWADDR "192.168.1.1" 237 #define RT_LWIP_MSKADDR "255.255.255.0" 238 /* end of Static IPv4 Address */ 239 #define RT_LWIP_UDP 240 #define RT_LWIP_TCP 241 #define RT_LWIP_RAW 242 #define RT_MEMP_NUM_NETCONN 8 243 #define RT_LWIP_PBUF_NUM 256 244 #define RT_LWIP_RAW_PCB_NUM 4 245 #define RT_LWIP_UDP_PCB_NUM 4 246 #define RT_LWIP_TCP_PCB_NUM 4 247 #define RT_LWIP_TCP_SEG_NUM 40 248 #define RT_LWIP_TCP_SND_BUF 8196 249 #define RT_LWIP_TCP_WND 8196 250 #define RT_LWIP_TCPTHREAD_PRIORITY 10 251 #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8 252 #define RT_LWIP_TCPTHREAD_STACKSIZE 2048 253 #define RT_LWIP_ETHTHREAD_PRIORITY 12 254 #define RT_LWIP_ETHTHREAD_STACKSIZE 1024 255 #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8 256 #define LWIP_NETIF_STATUS_CALLBACK 1 257 #define LWIP_NETIF_LINK_CALLBACK 1 258 #define RT_LWIP_NETIF_NAMESIZE 6 259 #define SO_REUSE 1 260 #define LWIP_SO_RCVTIMEO 1 261 #define LWIP_SO_SNDTIMEO 1 262 #define LWIP_SO_RCVBUF 1 263 #define LWIP_SO_LINGER 0 264 #define LWIP_NETIF_LOOPBACK 0 265 #define RT_LWIP_USING_PING 266 /* end of Network */ 267 268 /* Memory protection */ 269 270 /* end of Memory protection */ 271 272 /* Utilities */ 273 274 /* end of Utilities */ 275 276 /* Using USB legacy version */ 277 278 /* end of Using USB legacy version */ 279 /* end of RT-Thread Components */ 280 281 /* RT-Thread Utestcases */ 282 283 /* end of RT-Thread Utestcases */ 284 285 /* RT-Thread online packages */ 286 287 /* IoT - internet of things */ 288 289 290 /* Wi-Fi */ 291 292 /* Marvell WiFi */ 293 294 /* end of Marvell WiFi */ 295 296 /* Wiced WiFi */ 297 298 /* end of Wiced WiFi */ 299 300 /* CYW43012 WiFi */ 301 302 /* end of CYW43012 WiFi */ 303 304 /* BL808 WiFi */ 305 306 /* end of BL808 WiFi */ 307 308 /* CYW43439 WiFi */ 309 310 /* end of CYW43439 WiFi */ 311 /* end of Wi-Fi */ 312 313 /* IoT Cloud */ 314 315 /* end of IoT Cloud */ 316 /* end of IoT - internet of things */ 317 318 /* security packages */ 319 320 /* end of security packages */ 321 322 /* language packages */ 323 324 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 325 326 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 327 328 /* XML: Extensible Markup Language */ 329 330 /* end of XML: Extensible Markup Language */ 331 /* end of language packages */ 332 333 /* multimedia packages */ 334 335 /* LVGL: powerful and easy-to-use embedded GUI library */ 336 337 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 338 339 /* u8g2: a monochrome graphic library */ 340 341 /* end of u8g2: a monochrome graphic library */ 342 /* end of multimedia packages */ 343 344 /* tools packages */ 345 346 /* end of tools packages */ 347 348 /* system packages */ 349 350 /* enhanced kernel services */ 351 352 /* end of enhanced kernel services */ 353 354 /* acceleration: Assembly language or algorithmic acceleration packages */ 355 356 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 357 358 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 359 360 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 361 362 /* Micrium: Micrium software products porting for RT-Thread */ 363 364 /* end of Micrium: Micrium software products porting for RT-Thread */ 365 /* end of system packages */ 366 367 /* peripheral libraries and drivers */ 368 369 /* HAL & SDK Drivers */ 370 371 /* STM32 HAL & SDK Drivers */ 372 373 /* end of STM32 HAL & SDK Drivers */ 374 375 /* Infineon HAL Packages */ 376 377 /* end of Infineon HAL Packages */ 378 379 /* Kendryte SDK */ 380 381 /* end of Kendryte SDK */ 382 383 /* WCH HAL & SDK Drivers */ 384 385 /* end of WCH HAL & SDK Drivers */ 386 387 /* AT32 HAL & SDK Drivers */ 388 389 /* end of AT32 HAL & SDK Drivers */ 390 391 /* HC32 DDL Drivers */ 392 393 /* end of HC32 DDL Drivers */ 394 395 /* NXP HAL & SDK Drivers */ 396 397 /* end of NXP HAL & SDK Drivers */ 398 /* end of HAL & SDK Drivers */ 399 400 /* sensors drivers */ 401 402 /* end of sensors drivers */ 403 404 /* touch drivers */ 405 406 /* end of touch drivers */ 407 /* end of peripheral libraries and drivers */ 408 409 /* AI packages */ 410 411 /* end of AI packages */ 412 413 /* Signal Processing and Control Algorithm Packages */ 414 415 /* end of Signal Processing and Control Algorithm Packages */ 416 417 /* miscellaneous packages */ 418 419 /* project laboratory */ 420 421 /* end of project laboratory */ 422 423 /* samples: kernel and components samples */ 424 425 /* end of samples: kernel and components samples */ 426 427 /* entertainment: terminal games and other interesting software packages */ 428 429 /* end of entertainment: terminal games and other interesting software packages */ 430 /* end of miscellaneous packages */ 431 432 /* Arduino libraries */ 433 434 435 /* Projects and Demos */ 436 437 /* end of Projects and Demos */ 438 439 /* Sensors */ 440 441 /* end of Sensors */ 442 443 /* Display */ 444 445 /* end of Display */ 446 447 /* Timing */ 448 449 /* end of Timing */ 450 451 /* Data Processing */ 452 453 /* end of Data Processing */ 454 455 /* Data Storage */ 456 457 /* Communication */ 458 459 /* end of Communication */ 460 461 /* Device Control */ 462 463 /* end of Device Control */ 464 465 /* Other */ 466 467 /* end of Other */ 468 469 /* Signal IO */ 470 471 /* end of Signal IO */ 472 473 /* Uncategorized */ 474 475 /* end of Arduino libraries */ 476 /* end of RT-Thread online packages */ 477 #define SOC_ZYNQMP_R5 478 479 /* Hardware Drivers Config */ 480 481 /* Onboard Peripheral Drivers */ 482 483 /* On-chip Peripheral Drivers */ 484 485 #define BSP_USING_UART 486 #define BSP_USING_UART0 487 #define BSP_USING_SDIO 488 #define BSP_USING_SD0 489 490 /* Please set RT_LWIP_PBUF_NUM is at least 256 if Enable Ethernet! */ 491 492 /* Please set RT_LWIP_MEM_ALIGNMENT is at 32 if Enable Ethernet! */ 493 494 #define BSP_USING_ETH 495 /* end of On-chip Peripheral Drivers */ 496 497 /* Board extended module Drivers */ 498 499 /* end of Hardware Drivers Config */ 500 501 #endif 502