diff options
| author | qiuyiuestc <[email protected]> | 2010-01-10 15:15:27 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-01-10 15:15:27 +0000 |
| commit | 6c267dc5cdfd26ea3520326ddc418eccdd840892 (patch) | |
| tree | 2ccc2a4816e2e8a2a0c501d2b83267b587e22813 /bsp | |
| parent | 25220a4a32ae3dca57f7a30690ec5b53ae301d73 (diff) | |
update rtc driver
add webserver support
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@295 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/mini2440/SConstruct | 3 | ||||
| -rw-r--r-- | bsp/mini2440/rtconfig.h | 9 | ||||
| -rw-r--r-- | bsp/mini2440/rtconfig.py | 4 | ||||
| -rw-r--r-- | bsp/mini2440/startup.c | 4 | ||||
| -rw-r--r-- | bsp/stm3210/rtconfig.py | 8 |
5 files changed, 21 insertions, 7 deletions
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 diff --git a/bsp/stm3210/rtconfig.py b/bsp/stm3210/rtconfig.py index 725a814400..5e76672df7 100644 --- a/bsp/stm3210/rtconfig.py +++ b/bsp/stm3210/rtconfig.py @@ -17,10 +17,10 @@ RT_USING_RTGUI = False # toolchains options
ARCH='arm'
CPU='stm32'
-#PLATFORM = 'gcc'
-#EXEC_PATH = 'd:/codesourcery/bin'
-PLATFORM = 'armcc'
-EXEC_PATH = 'C:/Keil'
+PLATFORM = 'gcc'
+EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
+#PLATFORM = 'armcc'
+#EXEC_PATH = 'C:/Keil'
#PLATFORM = 'iar'
#EXEC_PATH = 'E:/Program Files/IAR Systems/Embedded Workbench 5.4/'
BUILD = 'debug'
|
