mirror of https://github.com/RT-Thread/rt-thread
Added lwip header file.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2071 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
3ec34b8f22
commit
372332dd0e
|
@ -1,8 +1,8 @@
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
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')
|
Return('group')
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include "components_init.h"
|
#include "components_init.h"
|
||||||
|
|
||||||
|
#ifdef RT_USING_FINSH
|
||||||
|
#include <finsh.h>
|
||||||
|
#include <shell.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_LWIP
|
#ifdef RT_USING_LWIP
|
||||||
#include <lwip/sys.h>
|
#include <lwip/sys.h>
|
||||||
#include <lwip/api.h>
|
|
||||||
#include <netif/ethernetif.h>
|
#include <netif/ethernetif.h>
|
||||||
|
extern void lwip_system_init(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_DFS
|
#ifdef RT_USING_DFS
|
||||||
|
@ -60,7 +65,7 @@ void rt_components_init(void)
|
||||||
eth_system_device_init();
|
eth_system_device_init();
|
||||||
|
|
||||||
/* initialize lwip system */
|
/* initialize lwip system */
|
||||||
lwip_sys_init();
|
lwip_system_init();
|
||||||
rt_kprintf("TCP/IP initialized!\n");
|
rt_kprintf("TCP/IP initialized!\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue