rtconfig.h 3.9 KB
Newer Older
1 2 3 4 5
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

/* Automatically generated file; DO NOT EDIT. */
/* RT-Thread Configuration */
B
Bernard Xiong 已提交
6

7 8 9 10 11 12 13 14
/* RT-Thread Kernel */

#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
B
Bernard Xiong 已提交
15
#define RT_USING_HOOK
16
#define RT_USING_IDLE_HOOK
17 18 19
#define RT_IDEL_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
#define RT_DEBUG
20
#define RT_DEBUG_COLOR
21 22 23

/* Inter-Thread communication */

B
Bernard Xiong 已提交
24 25 26 27 28 29
#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE

30 31
/* Memory Management */

B
Bernard Xiong 已提交
32 33
#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
34
#define RT_USING_HEAP
B
Bernard Xiong 已提交
35

36
/* Kernel Device Object */
B
Bernard Xiong 已提交
37

38
#define RT_USING_DEVICE
B
Bernard Xiong 已提交
39
#define RT_USING_CONSOLE
40 41
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
42
#define RT_VER_NUM 0x40001
43 44

/* RT-Thread Components */
B
Bernard Xiong 已提交
45 46

#define RT_USING_COMPONENTS_INIT
47 48 49 50 51 52 53 54 55
#define RT_USING_USER_MAIN
#define RT_MAIN_THREAD_STACK_SIZE 2048
#define RT_MAIN_THREAD_PRIORITY 10

/* C++ features */


/* Command shell */

B
Bernard Xiong 已提交
56
#define RT_USING_FINSH
57 58 59
#define FINSH_THREAD_NAME "tshell"
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
B
Bernard Xiong 已提交
60 61
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
62 63 64 65 66 67
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_CMD_SIZE 80
#define FINSH_USING_MSH
#define FINSH_USING_MSH_DEFAULT
#define FINSH_ARG_MAX 10
B
Bernard Xiong 已提交
68

69
/* Device virtual file system */
B
Bernard Xiong 已提交
70

71
#define RT_USING_DFS
B
Bernard Xiong 已提交
72
#define DFS_USING_WORKDIR
73 74 75
#define DFS_FILESYSTEMS_MAX 2
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
B
Bernard Xiong 已提交
76 77
#define RT_USING_DFS_DEVFS

78 79 80 81
/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512
82 83 84
#define RT_USING_SYSTEM_WORKQUEUE
#define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
#define RT_SYSTEM_WORKQUEUE_PRIORITY 23
85
#define RT_USING_SERIAL
86
#define RT_SERIAL_USING_DMA
87
#define RT_SERIAL_RB_BUFSZ 64
88 89
#define RT_USING_PIN

90 91 92
/* Using WiFi */


93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
/* Using USB */


/* POSIX layer and C standard library */

#define RT_USING_LIBC
#define RT_USING_POSIX

/* Network */

/* Socket abstraction layer */

#define RT_USING_SAL

/* protocol stack implement */

#define SAL_USING_LWIP
#define SAL_SOCKETS_NUM 16
111 112 113 114 115 116 117

/* Network interface device */

#define RT_USING_NETDEV
#define NETDEV_USING_IFCONFIG
#define NETDEV_USING_PING
#define NETDEV_USING_NETSTAT
118 119 120

/* light weight TCP/IP stack */

B
Bernard Xiong 已提交
121
#define RT_USING_LWIP
122 123
#define RT_USING_LWIP202
#define RT_LWIP_IGMP
B
Bernard Xiong 已提交
124 125 126
#define RT_LWIP_ICMP
#define RT_LWIP_DNS
#define RT_LWIP_DHCP
127 128 129 130 131 132 133 134 135 136
#define IP_SOF_BROADCAST 1
#define IP_SOF_BROADCAST_RECV 1

/* Static IPv4 Address */

#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_UDP
#define RT_LWIP_TCP
137
#define RT_LWIP_RAW
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
#define RT_MEMP_NUM_NETCONN 8
#define RT_LWIP_PBUF_NUM 16
#define RT_LWIP_RAW_PCB_NUM 4
#define RT_LWIP_UDP_PCB_NUM 4
#define RT_LWIP_TCP_PCB_NUM 4
#define RT_LWIP_TCP_SEG_NUM 40
#define RT_LWIP_TCP_SND_BUF 8196
#define RT_LWIP_TCP_WND 8196
#define RT_LWIP_TCPTHREAD_PRIORITY 10
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
#define RT_LWIP_TCPTHREAD_STACKSIZE 1024
#define RT_LWIP_ETHTHREAD_PRIORITY 12
#define RT_LWIP_ETHTHREAD_STACKSIZE 1024
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
#define LWIP_NETIF_STATUS_CALLBACK 1
153
#define LWIP_NETIF_LINK_CALLBACK 1
154 155 156 157 158
#define SO_REUSE 1
#define LWIP_SO_RCVTIMEO 1
#define LWIP_SO_SNDTIMEO 1
#define LWIP_SO_RCVBUF 1
#define LWIP_NETIF_LOOPBACK 0
159
#define RT_LWIP_USING_PING
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209

/* Modbus master and slave stack */


/* AT commands */


/* VBUS(Virtual Software BUS) */


/* Utilities */


/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */


/* Wiced WiFi */


/* IoT Cloud */


/* security packages */


/* language packages */


/* multimedia packages */


/* tools packages */


/* system packages */


/* peripheral libraries and drivers */


/* miscellaneous packages */


210
/* samples: kernel and components samples */
211 212

#define RT_USING_UART1
B
Bernard Xiong 已提交
213 214

#endif