From 372332dd0e0c7d6da08fea8497d70e187379013c Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Sun, 15 Apr 2012 13:03:20 +0000 Subject: [PATCH] Added lwip header file. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2071 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/init/SConscript | 4 ++-- components/init/components_init.c | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/init/SConscript b/components/init/SConscript index df773156c..522266c5e 100644 --- a/components/init/SConscript +++ b/components/init/SConscript @@ -1,8 +1,8 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] -group = DefineGroup('ComponentsInit', src, depend = ['RT_USING_COMPONENTS_INIT'], CPPPATH = CPPPATH) +group = DefineGroup('Components', src, depend = ['RT_USING_COMPONENTS_INIT'], CPPPATH = CPPPATH) Return('group') diff --git a/components/init/components_init.c b/components/init/components_init.c index 20b468387..51a8ec949 100644 --- a/components/init/components_init.c +++ b/components/init/components_init.c @@ -1,10 +1,15 @@ #include #include "components_init.h" +#ifdef RT_USING_FINSH +#include +#include +#endif + #ifdef RT_USING_LWIP #include -#include #include +extern void lwip_system_init(void); #endif #ifdef RT_USING_DFS @@ -60,7 +65,7 @@ void rt_components_init(void) eth_system_device_init(); /* initialize lwip system */ - lwip_sys_init(); + lwip_system_init(); rt_kprintf("TCP/IP initialized!\n"); #endif