rtconfig.h 5.5 KB
Newer Older
1 2 3 4 5
/* RT-Thread config file */
#ifndef __RTTHREAD_CFG_H__
#define __RTTHREAD_CFG_H__

/* RT_NAME_MAX*/
6
#define RT_NAME_MAX	32
7 8 9 10

/* RT_ALIGN_SIZE*/
#define RT_ALIGN_SIZE	4

11
/* PRIORITY_MAX */
12 13
#define RT_THREAD_PRIORITY_MAX	256

14
/* Tick per Second */
15 16 17
#define RT_TICK_PER_SECOND	100

/* SECTION: RT_DEBUG */
18 19
/* Thread Debug */
#define RT_DEBUG
20 21
/* #define RT_THREAD_DEBUG */

22 23 24
#define RT_USING_OVERFLOW_CHECK

/* Using Hook */
25 26
#define RT_USING_HOOK

27 28 29 30 31 32
/* Using Software Timer */
#define RT_USING_TIMER_SOFT
#define RT_TIMER_THREAD_PRIO		8
#define RT_TIMER_THREAD_STACK_SIZE	512
#define RT_TIMER_TICK_PER_SECOND	10

33
/* SECTION: IPC */
34
/* Using Semaphore */
35 36
#define RT_USING_SEMAPHORE

37
/* Using Mutex */
38 39
#define RT_USING_MUTEX

40
/* Using Event */
41 42
#define RT_USING_EVENT

43
/* Using MailBox */
44 45
#define RT_USING_MAILBOX

46
/* Using Message Queue */
47 48 49 50 51 52
#define RT_USING_MESSAGEQUEUE

/* SECTION: Memory Management */
/* Using Memory Pool Management*/
#define RT_USING_MEMPOOL

53
/* Using Dynamic Heap Management */
54 55
#define RT_USING_HEAP

56
/* Using Small MM */
57 58
/* #define RT_USING_SMALL_MEM */

59
/* Using SLAB Allocator */
60 61 62
#define RT_USING_SLAB

/* SECTION: Device System */
63
/* Using Device System */
64 65
#define RT_USING_DEVICE

qiuyiuestc's avatar
qiuyiuestc 已提交
66 67
/* Using Module System */
#define RT_USING_MODULE
68
#define RT_USING_LIBDL
qiuyiuestc's avatar
qiuyiuestc 已提交
69

70
/* SECTION: Console options */
71
#define RT_USING_CONSOLE
72
/* the buffer size of console */
73 74
#define RT_CONSOLEBUF_SIZE	128

75
/* SECTION: finsh, a C-Express shell */
76 77
/* Using FinSH as Shell*/
#define RT_USING_FINSH
B
bernard.xiong 已提交
78 79 80
/* Using symbol table */
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
81
#define FINSH_THREAD_STACK_SIZE 4096
82 83

/* SECTION: a runtime libc library */
84
/* a runtime libc library */
B
bernard.xiong 已提交
85
/* #define RT_USING_NEWLIB */
86
/* #define RT_USING_PTHREADS */
87 88

/* SECTION: C++ support */
89
/* Using C++ support */
90 91 92
/* #define RT_USING_CPLUSPLUS */

/* SECTION: Device filesystem support */
93
/* using DFS support */
qiuyiuestc's avatar
qiuyiuestc 已提交
94
#define RT_USING_DFS
qiuyiuestc's avatar
qiuyiuestc 已提交
95
#define RT_USING_DFS_ELMFAT
qiuyiuestc's avatar
qiuyiuestc 已提交
96 97
/* use long file name feature 			*/
#define RT_DFS_ELM_USE_LFN			1
98 99
/* the max number of file length 		*/
#define RT_DFS_ELM_MAX_LFN		32
100
/* #define RT_USING_DFS_YAFFS2 */
B
bernard.xiong 已提交
101
/* #define RT_USING_DFS_UFFS */
102
/* #define RT_USING_DFS_DEVFS */
103

104 105 106
#define RT_USING_DFS_NFS
#define RT_NFS_HOST_EXPORT		"192.168.1.5:/"

qiuyiuestc's avatar
qiuyiuestc 已提交
107
/* #define DFS_USING_WORKDIR */
108 109

/* the max number of mounted filesystem */
110
#define DFS_FILESYSTEMS_MAX		4
111 112 113 114 115
/* the max number of opened files 		*/
#define DFS_FD_MAX					16
/* the max number of cached sector 		*/
#define DFS_CACHE_MAX_NUM   		4

qiuyiuestc's avatar
qiuyiuestc 已提交
116 117 118
/* Enable freemodbus protocal stack*/
/* #define RT_USING_MODBUS */

119
/* SECTION: lwip, a lighwight TCP/IP protocol stack */
120
/* Using lighweight TCP/IP protocol stack */
qiuyiuestc's avatar
qiuyiuestc 已提交
121
/* #define RT_USING_LWIP */
122 123
#define RT_LWIP_DNS

124
/* Trace LwIP protocol */
125 126
/* #define RT_LWIP_DEBUG */

127
/* Enable ICMP protocol */
128 129
#define RT_LWIP_ICMP

130
/* Enable IGMP protocol */
131 132
#define RT_LWIP_IGMP

133
/* Enable UDP protocol */
134 135
#define RT_LWIP_UDP

136
/* Enable TCP protocol */
137 138 139 140 141
#define RT_LWIP_TCP

/* the number of simulatenously active TCP connections*/
#define RT_LWIP_TCP_PCB_NUM	5

142
/* TCP sender buffer space */
qiuyiuestc's avatar
qiuyiuestc 已提交
143 144 145 146
#define RT_LWIP_TCP_SND_BUF	1024*10

/* TCP receive window. */
#define RT_LWIP_TCP_WND	1024
147

148
/* Enable SNMP protocol */
149 150
/* #define RT_LWIP_SNMP */

151
/* Using DHCP */
152 153 154 155
/* #define RT_LWIP_DHCP */

#define RT_LWIP_DNS

156
/* ip address of target */
157 158
#define RT_LWIP_IPADDR0	192
#define RT_LWIP_IPADDR1	168
159
#define RT_LWIP_IPADDR2	1
160 161
#define RT_LWIP_IPADDR3	30

162
/* gateway address of target */
163 164
#define RT_LWIP_GWADDR0	192
#define RT_LWIP_GWADDR1	168
165
#define RT_LWIP_GWADDR2	1
166 167
#define RT_LWIP_GWADDR3	1

168
/* mask address of target */
169 170 171 172 173
#define RT_LWIP_MSKADDR0	255
#define RT_LWIP_MSKADDR1	255
#define RT_LWIP_MSKADDR2	255
#define RT_LWIP_MSKADDR3	0

174
/* the number of blocks for pbuf */
175 176
#define RT_LWIP_PBUF_NUM	16

qiuyiuestc's avatar
qiuyiuestc 已提交
177 178 179
/* the number of simultaneously queued TCP */
#define RT_LWIP_TCP_SEG_NUM    40

180
/* thread priority of tcpip thread */
181 182
#define RT_LWIP_TCPTHREAD_PRIORITY	128

183
/* mail box size of tcpip thread to wait for */
qiuyiuestc's avatar
qiuyiuestc 已提交
184
#define RT_LWIP_TCPTHREAD_MBOX_SIZE	32
185

186
/* thread stack size of tcpip thread */
187 188
#define RT_LWIP_TCPTHREAD_STACKSIZE	4096

189
/* thread priority of ethnetif thread */
190 191
#define RT_LWIP_ETHTHREAD_PRIORITY	144

192
/* mail box size of ethnetif thread to wait for */
193 194
#define RT_LWIP_ETHTHREAD_MBOX_SIZE	32

195
/* thread stack size of ethnetif thread */
196 197
#define RT_LWIP_ETHTHREAD_STACKSIZE	1024

B
bernard.xiong 已提交
198 199
/* SECTION: RTGUI support */
/* using RTGUI support */
J
 
jiaojinxing1987@gmail.com 已提交
200
#define RT_USING_RTGUI
B
bernard.xiong 已提交
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219

/* name length of RTGUI object */
#define RTGUI_NAME_MAX		16
/* support 16 weight font */
#define RTGUI_USING_FONT16
/* support 16 weight font */
#define RTGUI_USING_FONT12
/* support Chinese font */
#define RTGUI_USING_FONTHZ
/* use DFS as file interface */
#define RTGUI_USING_DFS_FILERW
/* use font file as Chinese font */
/* #define RTGUI_USING_HZ_FILE */
/* use Chinese bitmap font */
#define RTGUI_USING_HZ_BMP
/* use small size in RTGUI */
/* #define RTGUI_USING_SMALL_SIZE */
/* use mouse cursor */
/* #define RTGUI_USING_MOUSE_CURSOR */
220 221 222 223
/* RTGUI image options */
#define RTGUI_IMAGE_XPM
#define RTGUI_IMAGE_JPEG
#define RTGUI_IMAGE_BMP
B
bernard.xiong 已提交
224

J
 
jiaojinxing1987@gmail.com 已提交
225 226
/* SECTION: FTK support */
/* using FTK support */
J
 
jiaojinxing1987@gmail.com 已提交
227
/* #define RT_USING_FTK */	
J
 
jiaojinxing1987@gmail.com 已提交
228

229 230 231 232 233 234 235 236 237 238
/*
 * Note on FTK:
 * 
 * FTK depends :
 * #define RT_USING_NEWLIB
 * #define DFS_USING_WORKDIR
 * 
 * And the maximal length must great than 64
 * #define RT_DFS_ELM_MAX_LFN	128
 */
J
 
jiaojinxing1987@gmail.com 已提交
239

240
#endif