From 6c267dc5cdfd26ea3520326ddc418eccdd840892 Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Sun, 10 Jan 2010 15:15:27 +0000 Subject: update rtc driver add webserver support git-svn-id: https://rt-thread.googlecode.com/svn/trunk@295 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/mini2440/SConstruct | 3 +++ bsp/mini2440/rtconfig.h | 9 ++++++--- bsp/mini2440/rtconfig.py | 4 ++++ bsp/mini2440/startup.c | 4 ++++ 4 files changed, 17 insertions(+), 3 deletions(-) (limited to 'bsp/mini2440') diff --git a/bsp/mini2440/SConstruct b/bsp/mini2440/SConstruct index 783a9f8a28..9100d80aca 100644 --- a/bsp/mini2440/SConstruct +++ b/bsp/mini2440/SConstruct @@ -35,6 +35,9 @@ if rtconfig.RT_USING_LWIP: objs = objs + SConscript(RTT_ROOT + '/net/lwip/SConscript', variant_dir='build/net/lwip', duplicate=0) objs = objs + SConscript(RTT_ROOT + '/net/apps/SConscript', variant_dir='build/net/apps', duplicate=0) +if rtconfig.RT_USING_WEBSERVER: + objs = objs + SConscript(RTT_ROOT + '/net/webserver/SConscript', variant_dir='build/net/webserver', duplicate=0) + if rtconfig.RT_USING_RTGUI: objs = objs + SConscript(RTT_ROOT + '/rtgui/SConscript', variant_dir='build/rtgui', duplicate=0) diff --git a/bsp/mini2440/rtconfig.h b/bsp/mini2440/rtconfig.h index 116852d2b3..1f6a77cbb9 100644 --- a/bsp/mini2440/rtconfig.h +++ b/bsp/mini2440/rtconfig.h @@ -90,14 +90,14 @@ /* SECTION: Device filesystem support */ /* using DFS support */ -/* #define RT_USING_DFS */ +#define RT_USING_DFS #define RT_USING_DFS_EFSL #define RT_USING_DFS_YAFFS2 #define RT_USING_WORKDIR /* the max number of mounted filesystem */ -#define DFS_FILESYSTEMS_MAX 2 +#define DFS_FILESYSTEMS_MAX 2 /* the max number of opened files */ #define DFS_FD_MAX 16 /* the max number of cached sector */ @@ -127,7 +127,10 @@ #define RT_LWIP_TCP_PCB_NUM 5 /* TCP sender buffer space */ -#define RT_LWIP_TCP_SND_BUF 10240 +#define RT_LWIP_TCP_SND_BUF 1024*10 + +/* TCP receive window. */ +#define RT_LWIP_TCP_WND 1024 /* Enable SNMP protocol */ /* #define RT_LWIP_SNMP */ diff --git a/bsp/mini2440/rtconfig.py b/bsp/mini2440/rtconfig.py index 39fcbedbdb..6cc74ea8da 100644 --- a/bsp/mini2440/rtconfig.py +++ b/bsp/mini2440/rtconfig.py @@ -11,6 +11,7 @@ RT_USING_DFS_YAFFS2 = False # lwip options RT_USING_LWIP = True +RT_USING_WEBSERVER = False # rtgui options RT_USING_RTGUI = True @@ -77,6 +78,9 @@ elif PLATFORM == 'armcc': EXEC_PATH += '/arm/bin40/' + if RT_USING_WEBSERVER: + CFLAGS += ' -DWEBS -DUEMF -DRTT -D__NO_FCNTL=1' + if BUILD == 'debug': CFLAGS += ' -g -O0' AFLAGS += ' -g' diff --git a/bsp/mini2440/startup.c b/bsp/mini2440/startup.c index 0caeb12aa7..852e5f56b6 100644 --- a/bsp/mini2440/startup.c +++ b/bsp/mini2440/startup.c @@ -25,6 +25,7 @@ extern void rt_hw_interrupt_init(void); extern void rt_hw_board_init(void); +extern void rt_hw_rtc_init(void); extern void rt_serial_init(void); extern void rt_system_timer_init(void); extern void rt_system_scheduler_init(void); @@ -102,6 +103,9 @@ void rtthread_startup(void) rt_hw_sdcard_init(); #endif + /* rtc init */ + rt_hw_rtc_init(); + /*init all registed devices */ rt_device_init_all(); #endif -- cgit v1.3.1