rtconfig.h 4.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/* RT-Thread config file */
#ifndef __RTTHREAD_CFG_H__
#define __RTTHREAD_CFG_H__

/* RT_NAME_MAX*/
#define RT_NAME_MAX	8

/* 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 66
#define RT_USING_DEVICE

/* SECTION: Console options */
67
/* the buffer size of console */
68 69
#define RT_CONSOLEBUF_SIZE	128

70
/* SECTION: finsh, a C-Express shell */
71 72
/* Using FinSH as Shell*/
#define RT_USING_FINSH
B
bernard.xiong 已提交
73 74 75
/* Using symbol table */
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
76 77

/* SECTION: a runtime libc library */
78
/* a runtime libc library */
B
bernard.xiong 已提交
79
/* #define RT_USING_NEWLIB */
80 81

/* SECTION: a mini libc */
82
/* Using mini libc library */
83 84 85
/* #define RT_USING_MINILIBC */

/* SECTION: C++ support */
86
/* Using C++ support */
87 88 89
/* #define RT_USING_CPLUSPLUS */

/* SECTION: RTGUI support */
90
/* using RTGUI support */
A
 
aganhx@gmail.com 已提交
91
#define RT_USING_RTGUI
92 93

/* SECTION: Device filesystem support */
94
/* using DFS support */
A
 
aganhx@gmail.com 已提交
95
#define RT_USING_DFS
B
bernard.xiong 已提交
96
#define RT_USING_DFS_EFSL
A
 
aganhx@gmail.com 已提交
97
/* #define RT_USING_DFS_YAFFS2 */
98 99 100 101 102 103 104 105 106 107 108

#define RT_USING_WORKDIR

/* the max number of mounted filesystem */
#define DFS_FILESYSTEMS_MAX			2
/* the max number of opened files 		*/
#define DFS_FD_MAX					16
/* the max number of cached sector 		*/
#define DFS_CACHE_MAX_NUM   		4

/* SECTION: lwip, a lighwight TCP/IP protocol stack */
109 110
/* Using lighweight TCP/IP protocol stack */
/* #define RT_USING_LWIP */
111 112
#define RT_LWIP_DNS

113
/* Using webserver goahead support */
114 115
#define RT_USING_WEBSERVER

116
/* Using ftpserver support */
117 118
#define RT_USING_FTPSERVER

119
/* Trace LwIP protocol */
120 121
/* #define RT_LWIP_DEBUG */

122
/* Enable ICMP protocol */
123 124
#define RT_LWIP_ICMP

125
/* Enable IGMP protocol */
126 127
#define RT_LWIP_IGMP

128
/* Enable UDP protocol */
129 130
#define RT_LWIP_UDP

131
/* Enable TCP protocol */
132 133 134 135 136
#define RT_LWIP_TCP

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

137
/* TCP sender buffer space */
138 139
#define RT_LWIP_TCP_SND_BUF	10240

140
/* Enable SNMP protocol */
141 142
/* #define RT_LWIP_SNMP */

143
/* Using DHCP */
144 145 146 147
/* #define RT_LWIP_DHCP */

#define RT_LWIP_DNS

148
/* ip address of target */
149 150
#define RT_LWIP_IPADDR0	192
#define RT_LWIP_IPADDR1	168
151
#define RT_LWIP_IPADDR2	1
152 153
#define RT_LWIP_IPADDR3	30

154
/* gateway address of target */
155 156
#define RT_LWIP_GWADDR0	192
#define RT_LWIP_GWADDR1	168
157
#define RT_LWIP_GWADDR2	1
158 159
#define RT_LWIP_GWADDR3	1

160
/* mask address of target */
161 162 163 164 165
#define RT_LWIP_MSKADDR0	255
#define RT_LWIP_MSKADDR1	255
#define RT_LWIP_MSKADDR2	255
#define RT_LWIP_MSKADDR3	0

166
/* the number of blocks for pbuf */
167 168
#define RT_LWIP_PBUF_NUM	16

169
/* thread priority of tcpip thread */
170 171
#define RT_LWIP_TCPTHREAD_PRIORITY	128

172
/* mail box size of tcpip thread to wait for */
173 174
#define RT_LWIP_TCPTHREAD_MBOX_SIZE	8

175
/* thread stack size of tcpip thread */
176 177
#define RT_LWIP_TCPTHREAD_STACKSIZE	4096

178
/* thread priority of ethnetif thread */
179 180
#define RT_LWIP_ETHTHREAD_PRIORITY	144

181
/* mail box size of ethnetif thread to wait for */
182 183
#define RT_LWIP_ETHTHREAD_MBOX_SIZE	32

184
/* thread stack size of ethnetif thread */
185 186 187
#define RT_LWIP_ETHTHREAD_STACKSIZE	1024

#endif