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