1 /* RT-Thread config file */
2 #ifndef __RTTHREAD_CFG_H__
3 #define __RTTHREAD_CFG_H__
4 
5 /* RT_NAME_MAX*/
6 #define RT_NAME_MAX	8
7 
8 /* RT_ALIGN_SIZE*/
9 #define RT_ALIGN_SIZE	8
10 
11 /* PRIORITY_MAX */
12 #define RT_THREAD_PRIORITY_MAX	256
13 
14 /* Tick per Second */
15 #define RT_TICK_PER_SECOND	100
16 
17 /* SECTION: RT_DEBUG */
18 /* Thread Debug */
19 #define RT_DEBUG
20 #define RT_DEBUG_COLOR
21 /* #define RT_THREAD_DEBUG */
22 
23 #define RT_USING_OVERFLOW_CHECK
24 
25 /* Using Hook */
26 #define RT_USING_HOOK
27 
28 /* Using Software Timer */
29 #define RT_USING_TIMER_SOFT
30 #define RT_TIMER_THREAD_PRIO		8
31 #define RT_TIMER_THREAD_STACK_SIZE	512
32 #define RT_TICK_PER_SECOND	10
33 
34 /* SECTION: IPC */
35 /* Using Semaphore */
36 #define RT_USING_SEMAPHORE
37 
38 /* Using Mutex */
39 #define RT_USING_MUTEX
40 
41 /* Using Event */
42 #define RT_USING_EVENT
43 
44 /* Using MailBox */
45 #define RT_USING_MAILBOX
46 
47 /* Using Message Queue */
48 #define RT_USING_MESSAGEQUEUE
49 
50 /* SECTION: Memory Management */
51 /* Using Memory Pool Management*/
52 #define RT_USING_MEMPOOL
53 
54 /* Using Dynamic Heap Management */
55 #define RT_USING_HEAP
56 
57 /* Using Small MM */
58 /* #define RT_USING_SMALL_MEM */
59 
60 /* Using SLAB Allocator */
61 #define RT_USING_SLAB
62 
63 #define RT_USING_CONSOLE
64 /* SECTION: Device System */
65 /* Using Device System */
66 #define RT_USING_DEVICE
67 
68 /* SECTION: Console options */
69 /* the buffer size of console */
70 #define RT_CONSOLEBUF_SIZE	128
71 
72 /* SECTION: finsh, a C-Express shell */
73 /* Using FinSH as Shell*/
74 #define RT_USING_FINSH
75 #define FINSH_USING_SYMTAB
76 #define FINSH USING DESCRIPTION
77 
78 /* SECTION: a runtime libc library */
79 /* a runtime libc library */
80 
81 /* SECTION: a mini libc */
82 
83 /* SECTION: C++ support */
84 /* Using C++ support */
85 /* #define RT_USING_CPLUSPLUS */
86 
87 /* SECTION: Device filesystem support */
88 /* using DFS support */
89 /* #define RT_USING_DFS */
90 /* #define RT_USING_DFS_ELMFAT */
91 /* #define RT_USING_DFS_YAFFS2 */
92 
93 /* #define DFS_USING_WORKDIR */
94 
95 /* the max number of mounted filesystem */
96 #define DFS_FILESYSTEMS_MAX		2
97 /* the max number of opened files 		*/
98 #define DFS_FD_MAX					16
99 /* the max number of cached sector 		*/
100 #define DFS_CACHE_MAX_NUM   		4
101 
102 /* SECTION: lwip, a lighwight TCP/IP protocol stack */
103 /* Using lighweight TCP/IP protocol stack */
104 /* #define RT_USING_LWIP */
105 /* #define RT_LWIP_DNS */
106 
107 /* Trace LwIP protocol */
108 /* #define RT_LWIP_DEBUG */
109 
110 /* Enable ICMP protocol */
111 #define RT_LWIP_ICMP
112 
113 /* Enable IGMP protocol */
114 #define RT_LWIP_IGMP
115 
116 /* Enable UDP protocol */
117 #define RT_LWIP_UDP
118 
119 /* Enable TCP protocol */
120 #define RT_LWIP_TCP
121 
122 /* the number of simulatenously active TCP connections*/
123 #define RT_LWIP_TCP_PCB_NUM	5
124 
125 /* TCP sender buffer space */
126 #define RT_LWIP_TCP_SND_BUF	1024*10
127 
128 /* TCP receive window. */
129 #define RT_LWIP_TCP_WND	1024
130 
131 /* Enable SNMP protocol */
132 /* #define RT_LWIP_SNMP */
133 
134 /* Using DHCP */
135 /* #define RT_LWIP_DHCP */
136 
137 /* ip address of target */
138 #define RT_LWIP_IPADDR0	192
139 #define RT_LWIP_IPADDR1	168
140 #define RT_LWIP_IPADDR2	1
141 #define RT_LWIP_IPADDR3	30
142 
143 /* gateway address of target */
144 #define RT_LWIP_GWADDR0	192
145 #define RT_LWIP_GWADDR1	168
146 #define RT_LWIP_GWADDR2	1
147 #define RT_LWIP_GWADDR3	1
148 
149 /* mask address of target */
150 #define RT_LWIP_MSKADDR0	255
151 #define RT_LWIP_MSKADDR1	255
152 #define RT_LWIP_MSKADDR2	255
153 #define RT_LWIP_MSKADDR3	0
154 
155 /* the number of blocks for pbuf */
156 #define RT_LWIP_PBUF_NUM	16
157 
158 /* thread priority of tcpip thread */
159 #define RT_LWIP_TCPTHREAD_PRIORITY	128
160 
161 /* mail box size of tcpip thread to wait for */
162 #define RT_LWIP_TCPTHREAD_MBOX_SIZE	8
163 
164 /* thread stack size of tcpip thread */
165 #define RT_LWIP_TCPTHREAD_STACKSIZE	4096
166 
167 /* thread priority of ethnetif thread */
168 #define RT_LWIP_ETHTHREAD_PRIORITY	144
169 
170 /* mail box size of ethnetif thread to wait for */
171 #define RT_LWIP_ETHTHREAD_MBOX_SIZE	32
172 
173 /* thread stack size of ethnetif thread */
174 #define RT_LWIP_ETHTHREAD_STACKSIZE	1024
175 
176 /* SECTION: RTGUI support */
177 /* using RTGUI support */
178 /* #define RT_USING_RTGUI */
179 
180 /* name length of RTGUI object */
181 #define RTGUI_NAME_MAX		16
182 /* support 16 weight font */
183 #define RTGUI_USING_FONT16
184 /* support 16 weight font */
185 #define RTGUI_USING_FONT12
186 /* support Chinese font */
187 #define RTGUI_USING_FONTHZ
188 /* use DFS as file interface */
189 #define RTGUI_USING_DFS_FILERW
190 /* use font file as Chinese font */
191 /* #define RTGUI_USING_HZ_FILE */
192 /* use Chinese bitmap font */
193 #define RTGUI_USING_HZ_BMP
194 /* use small size in RTGUI */
195 /* #define RTGUI_USING_SMALL_SIZE */
196 /* use mouse cursor */
197 /* #define RTGUI_USING_MOUSE_CURSOR */
198 #endif
199