2009-12-11 17:42:01 +08:00
|
|
|
/* 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
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* PRIORITY_MAX */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_THREAD_PRIORITY_MAX 256
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Tick per Second */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_TICK_PER_SECOND 100
|
|
|
|
|
|
|
|
/* SECTION: RT_DEBUG */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Thread Debug */
|
|
|
|
#define RT_DEBUG
|
2009-12-11 17:42:01 +08:00
|
|
|
/* #define RT_THREAD_DEBUG */
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
#define RT_USING_OVERFLOW_CHECK
|
|
|
|
|
|
|
|
/* Using Hook */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_HOOK
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* 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
|
|
|
|
|
2009-12-11 17:42:01 +08:00
|
|
|
/* SECTION: IPC */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using Semaphore */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_SEMAPHORE
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using Mutex */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_MUTEX
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using Event */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_EVENT
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using MailBox */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_MAILBOX
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using Message Queue */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_MESSAGEQUEUE
|
|
|
|
|
|
|
|
/* SECTION: Memory Management */
|
|
|
|
/* Using Memory Pool Management*/
|
|
|
|
#define RT_USING_MEMPOOL
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using Dynamic Heap Management */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_HEAP
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using Small MM */
|
2009-12-11 17:42:01 +08:00
|
|
|
/* #define RT_USING_SMALL_MEM */
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using SLAB Allocator */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_SLAB
|
|
|
|
|
|
|
|
/* SECTION: Device System */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using Device System */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_DEVICE
|
|
|
|
|
|
|
|
/* SECTION: Console options */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* the buffer size of console */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_CONSOLEBUF_SIZE 128
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* SECTION: finsh, a C-Express shell */
|
2009-12-11 17:42:01 +08:00
|
|
|
/* Using FinSH as Shell*/
|
|
|
|
#define RT_USING_FINSH
|
2009-12-18 13:25:41 +08:00
|
|
|
/* Using symbol table */
|
|
|
|
#define FINSH_USING_SYMTAB
|
|
|
|
#define FINSH_USING_DESCRIPTION
|
2009-12-11 17:42:01 +08:00
|
|
|
|
|
|
|
/* SECTION: a runtime libc library */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* a runtime libc library */
|
2009-12-18 13:25:41 +08:00
|
|
|
/* #define RT_USING_NEWLIB */
|
2009-12-11 17:42:01 +08:00
|
|
|
|
|
|
|
/* SECTION: a mini libc */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using mini libc library */
|
2009-12-11 17:42:01 +08:00
|
|
|
/* #define RT_USING_MINILIBC */
|
|
|
|
|
|
|
|
/* SECTION: C++ support */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using C++ support */
|
2009-12-11 17:42:01 +08:00
|
|
|
/* #define RT_USING_CPLUSPLUS */
|
|
|
|
|
|
|
|
/* SECTION: RTGUI support */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* using RTGUI support */
|
2010-01-03 17:25:33 +08:00
|
|
|
/* #define RT_USING_RTGUI */
|
2009-12-11 17:42:01 +08:00
|
|
|
|
|
|
|
/* SECTION: Device filesystem support */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* using DFS support */
|
2010-01-03 17:25:33 +08:00
|
|
|
/* #define RT_USING_DFS */
|
2009-12-18 13:25:41 +08:00
|
|
|
#define RT_USING_DFS_EFSL
|
2010-01-01 17:11:09 +08:00
|
|
|
#define RT_USING_DFS_YAFFS2
|
2009-12-11 17:42:01 +08:00
|
|
|
|
|
|
|
#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 */
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using lighweight TCP/IP protocol stack */
|
|
|
|
/* #define RT_USING_LWIP */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_DNS
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using webserver goahead support */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_WEBSERVER
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using ftpserver support */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_USING_FTPSERVER
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Trace LwIP protocol */
|
2009-12-11 17:42:01 +08:00
|
|
|
/* #define RT_LWIP_DEBUG */
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Enable ICMP protocol */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_ICMP
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Enable IGMP protocol */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_IGMP
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Enable UDP protocol */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_UDP
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Enable TCP protocol */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_TCP
|
|
|
|
|
|
|
|
/* the number of simulatenously active TCP connections*/
|
|
|
|
#define RT_LWIP_TCP_PCB_NUM 5
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* TCP sender buffer space */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_TCP_SND_BUF 10240
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Enable SNMP protocol */
|
2009-12-11 17:42:01 +08:00
|
|
|
/* #define RT_LWIP_SNMP */
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* Using DHCP */
|
2009-12-11 17:42:01 +08:00
|
|
|
/* #define RT_LWIP_DHCP */
|
|
|
|
|
|
|
|
#define RT_LWIP_DNS
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* ip address of target */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_IPADDR0 192
|
|
|
|
#define RT_LWIP_IPADDR1 168
|
2009-12-25 20:20:04 +08:00
|
|
|
#define RT_LWIP_IPADDR2 1
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_IPADDR3 30
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* gateway address of target */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_GWADDR0 192
|
|
|
|
#define RT_LWIP_GWADDR1 168
|
2009-12-25 20:20:04 +08:00
|
|
|
#define RT_LWIP_GWADDR2 1
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_GWADDR3 1
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* mask address of target */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_MSKADDR0 255
|
|
|
|
#define RT_LWIP_MSKADDR1 255
|
|
|
|
#define RT_LWIP_MSKADDR2 255
|
|
|
|
#define RT_LWIP_MSKADDR3 0
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* the number of blocks for pbuf */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_PBUF_NUM 16
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* thread priority of tcpip thread */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_TCPTHREAD_PRIORITY 128
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* mail box size of tcpip thread to wait for */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* thread stack size of tcpip thread */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_TCPTHREAD_STACKSIZE 4096
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* thread priority of ethnetif thread */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_ETHTHREAD_PRIORITY 144
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* mail box size of ethnetif thread to wait for */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
|
|
|
|
|
2009-12-25 20:20:04 +08:00
|
|
|
/* thread stack size of ethnetif thread */
|
2009-12-11 17:42:01 +08:00
|
|
|
#define RT_LWIP_ETHTHREAD_STACKSIZE 1024
|
|
|
|
|
|
|
|
#endif
|