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

J
 
jiaojinxing1987@gmail.com 已提交
5 6 7
/* Init thread stack space size */
#define RT_INIT_THREAD_STACK_SIZE  2048

8
/* RT_NAME_MAX*/
qiuyiuestc's avatar
qiuyiuestc 已提交
9
#define RT_NAME_MAX	8
10 11 12 13

/* RT_ALIGN_SIZE*/
#define RT_ALIGN_SIZE	4

14
/* PRIORITY_MAX */
15 16
#define RT_THREAD_PRIORITY_MAX	256

17
/* Tick per Second */
18 19 20
#define RT_TICK_PER_SECOND	100

/* SECTION: RT_DEBUG */
21 22
/* Thread Debug */
#define RT_DEBUG
23 24
/* #define RT_THREAD_DEBUG */

25 26 27
#define RT_USING_OVERFLOW_CHECK

/* Using Hook */
28 29
#define RT_USING_HOOK

30 31 32 33 34 35
/* 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

36
/* SECTION: IPC */
37
/* Using Semaphore */
38 39
#define RT_USING_SEMAPHORE

40
/* Using Mutex */
41 42
#define RT_USING_MUTEX

43
/* Using Event */
44 45
#define RT_USING_EVENT

46
/* Using MailBox */
47 48
#define RT_USING_MAILBOX

49
/* Using Message Queue */
50 51 52 53 54 55
#define RT_USING_MESSAGEQUEUE

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

56
/* Using Dynamic Heap Management */
57 58
#define RT_USING_HEAP

59
/* Using Small MM */
60 61
/* #define RT_USING_SMALL_MEM */

62
/* Using SLAB Allocator */
63 64 65
#define RT_USING_SLAB

/* SECTION: Device System */
66
/* Using Device System */
67 68
#define RT_USING_DEVICE

qiuyiuestc's avatar
qiuyiuestc 已提交
69 70 71
/* Using Module System */
#define RT_USING_MODULE

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

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

/* SECTION: a runtime libc library */
85
/* a runtime libc library */
B
bernard.xiong 已提交
86
/* #define RT_USING_NEWLIB */
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 */
101

102 103 104
#define RT_USING_DFS_NFS
#define RT_NFS_HOST_EXPORT		"192.168.1.5:/"

qiuyiuestc's avatar
qiuyiuestc 已提交
105
/* #define DFS_USING_WORKDIR */
106 107

/* the max number of mounted filesystem */
qiuyiuestc's avatar
qiuyiuestc 已提交
108
#define DFS_FILESYSTEMS_MAX		2
109 110 111 112 113
/* 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 已提交
114 115 116
/* Enable freemodbus protocal stack*/
/* #define RT_USING_MODBUS */

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

122
/* Trace LwIP protocol */
123 124
/* #define RT_LWIP_DEBUG */

125
/* Enable ICMP protocol */
126 127
#define RT_LWIP_ICMP

128
/* Enable IGMP protocol */
129 130
#define RT_LWIP_IGMP

131
/* Enable UDP protocol */
132 133
#define RT_LWIP_UDP

134
/* Enable TCP protocol */
135 136 137 138 139
#define RT_LWIP_TCP

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

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

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

146
/* Enable SNMP protocol */
147 148
/* #define RT_LWIP_SNMP */

149
/* Using DHCP */
150 151 152 153
/* #define RT_LWIP_DHCP */

#define RT_LWIP_DNS

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

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

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

172
/* the number of blocks for pbuf */
173 174
#define RT_LWIP_PBUF_NUM	16

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

178
/* thread priority of tcpip thread */
179 180
#define RT_LWIP_TCPTHREAD_PRIORITY	128

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

184
/* thread stack size of tcpip thread */
185 186
#define RT_LWIP_TCPTHREAD_STACKSIZE	4096

187
/* thread priority of ethnetif thread */
188 189
#define RT_LWIP_ETHTHREAD_PRIORITY	144

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

193
/* thread stack size of ethnetif thread */
194 195
#define RT_LWIP_ETHTHREAD_STACKSIZE	1024

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

/* 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 */

J
 
jiaojinxing1987@gmail.com 已提交
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
/* SECTION: FTK support */
/* using FTK support */
#define RT_USING_FTK

#ifdef  RT_USING_FTK  

#undef  RT_USING_RTGUI

#ifndef RT_USING_NEWLIB
#define RT_USING_NEWLIB
#endif

#ifndef DFS_USING_WORKDIR
#define DFS_USING_WORKDIR
#endif

#undef  RT_DFS_ELM_MAX_LFN
#define RT_DFS_ELM_MAX_LFN    64

#undef  RT_USING_OVERFLOW_CHECK

#undef  RT_INIT_THREAD_STACK_SIZE
#define RT_INIT_THREAD_STACK_SIZE (256*1024)

#endif

245
#endif