rtconfig.h 6.1 KB
Newer Older
1 2 3
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
B
Bernard Xiong 已提交
5

6 7 8 9 10 11 12 13
/* 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 已提交
14
#define RT_USING_HOOK
15
#define RT_USING_IDLE_HOOK
16
#define RT_IDLE_HOOK_LIST_SIZE 4
17
#define IDLE_THREAD_STACK_SIZE 256
18 19 20 21

/* kservice optimization */

/* end of kservice optimization */
22
#define RT_DEBUG
23
#define RT_DEBUG_COLOR
24 25 26

/* Inter-Thread communication */

B
Bernard Xiong 已提交
27 28 29 30 31
#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
32
/* end of Inter-Thread communication */
B
Bernard Xiong 已提交
33

34 35
/* Memory Management */

B
Bernard Xiong 已提交
36 37
#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
38
#define RT_USING_HEAP
39
/* end of Memory Management */
B
Bernard Xiong 已提交
40

41
/* Kernel Device Object */
B
Bernard Xiong 已提交
42

43
#define RT_USING_DEVICE
B
Bernard Xiong 已提交
44
#define RT_USING_CONSOLE
45 46
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
47 48 49
/* end of Kernel Device Object */
#define RT_VER_NUM 0x40004
/* end of RT-Thread Kernel */
50 51

/* RT-Thread Components */
B
Bernard Xiong 已提交
52 53

#define RT_USING_COMPONENTS_INIT
54 55 56 57 58 59
#define RT_USING_USER_MAIN
#define RT_MAIN_THREAD_STACK_SIZE 2048
#define RT_MAIN_THREAD_PRIORITY 10

/* C++ features */

60
/* end of C++ features */
61 62 63

/* Command shell */

B
Bernard Xiong 已提交
64
#define RT_USING_FINSH
65 66
#define RT_USING_MSH
#define FINSH_USING_MSH
67
#define FINSH_THREAD_NAME "tshell"
68 69
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
70 71
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
B
Bernard Xiong 已提交
72
#define FINSH_USING_SYMTAB
73
#define FINSH_CMD_SIZE 80
74 75
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
76
#define FINSH_ARG_MAX 10
77
/* end of Command shell */
B
Bernard Xiong 已提交
78

79
/* Device virtual file system */
B
Bernard Xiong 已提交
80

81
#define RT_USING_DFS
B
Bernard Xiong 已提交
82
#define DFS_USING_WORKDIR
83 84 85
#define DFS_FILESYSTEMS_MAX 2
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
B
Bernard Xiong 已提交
86
#define RT_USING_DFS_DEVFS
87
/* end of Device virtual file system */
B
Bernard Xiong 已提交
88

89 90 91 92
/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512
93 94 95
#define RT_USING_SYSTEM_WORKQUEUE
#define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
#define RT_SYSTEM_WORKQUEUE_PRIORITY 23
96
#define RT_USING_SERIAL
97
#define RT_USING_SERIAL_V1
98
#define RT_SERIAL_USING_DMA
99
#define RT_SERIAL_RB_BUFSZ 64
100 101 102 103
#define RT_USING_PIN

/* Using USB */

104 105
/* end of Using USB */
/* end of Device Drivers */
106 107 108 109 110

/* POSIX layer and C standard library */

#define RT_USING_LIBC
#define RT_USING_POSIX
111 112 113
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* end of POSIX layer and C standard library */
114 115 116 117 118 119

/* Network */

/* Socket abstraction layer */

#define RT_USING_SAL
120
#define SAL_INTERNET_CHECK
121 122 123 124

/* protocol stack implement */

#define SAL_USING_LWIP
125
/* end of protocol stack implement */
126
#define SAL_SOCKETS_NUM 16
127
/* end of Socket abstraction layer */
128 129 130 131 132 133 134

/* Network interface device */

#define RT_USING_NETDEV
#define NETDEV_USING_IFCONFIG
#define NETDEV_USING_PING
#define NETDEV_USING_NETSTAT
135 136 137
#define NETDEV_USING_AUTO_DEFAULT
#define NETDEV_IPV4 1
#define NETDEV_IPV6 0
138
/* end of Network interface device */
139 140 141

/* light weight TCP/IP stack */

B
Bernard Xiong 已提交
142
#define RT_USING_LWIP
143
#define RT_USING_LWIP202
144
#define RT_LWIP_MEM_ALIGNMENT 4
145
#define RT_LWIP_IGMP
B
Bernard Xiong 已提交
146 147 148
#define RT_LWIP_ICMP
#define RT_LWIP_DNS
#define RT_LWIP_DHCP
149 150 151 152 153 154 155 156
#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"
157
/* end of Static IPv4 Address */
158 159
#define RT_LWIP_UDP
#define RT_LWIP_TCP
160
#define RT_LWIP_RAW
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
#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
176
#define LWIP_NETIF_LINK_CALLBACK 1
177 178 179 180
#define SO_REUSE 1
#define LWIP_SO_RCVTIMEO 1
#define LWIP_SO_SNDTIMEO 1
#define LWIP_SO_RCVBUF 1
181
#define LWIP_SO_LINGER 0
182
#define LWIP_NETIF_LOOPBACK 0
183
#define RT_LWIP_USING_PING
184
/* end of light weight TCP/IP stack */
185 186 187

/* AT commands */

188 189
/* end of AT commands */
/* end of Network */
190 191 192

/* VBUS(Virtual Software BUS) */

193
/* end of VBUS(Virtual Software BUS) */
194 195 196

/* Utilities */

197 198 199 200 201 202
/* end of Utilities */
/* end of RT-Thread Components */

/* RT-Thread Utestcases */

/* end of RT-Thread Utestcases */
203 204 205 206 207 208 209 210 211 212

/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

213
/* end of Marvell WiFi */
214 215 216

/* Wiced WiFi */

217 218
/* end of Wiced WiFi */
/* end of Wi-Fi */
219 220 221

/* IoT Cloud */

222 223
/* end of IoT Cloud */
/* end of IoT - internet of things */
224 225 226

/* security packages */

227
/* end of security packages */
228 229 230

/* language packages */

231
/* end of language packages */
232 233 234 235

/* multimedia packages */


236 237 238 239 240 241 242 243 244
/* lvgl: powerful and easy-to-use embedded GUI library */

/* end of lvgl: powerful and easy-to-use embedded GUI library */

/* u8g2: a monochrome graphic library */

/* end of u8g2: a monochrome graphic library */
/* end of multimedia packages */

245 246
/* tools packages */

247
/* end of tools packages */
248 249 250

/* system packages */

251 252 253 254 255 256 257 258
/* acceleration: Assembly language or algorithmic acceleration packages */

/* end of acceleration: Assembly language or algorithmic acceleration packages */

/* Micrium: Micrium software products porting for RT-Thread */

/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
259 260 261

/* peripheral libraries and drivers */

262
/* end of peripheral libraries and drivers */
263

264
/* AI packages */
265

266 267 268
/* end of AI packages */

/* miscellaneous packages */
269

270
/* samples: kernel and components samples */
271

272 273 274 275 276 277 278 279
/* end of samples: kernel and components samples */

/* entertainment: terminal games and other interesting software packages */

/* end of entertainment: terminal games and other interesting software packages */
/* end of miscellaneous packages */
/* end of RT-Thread online packages */
#define SOC_MCIMX6X4
280
#define RT_USING_UART1
B
Bernard Xiong 已提交
281 282

#endif