initialize lwip and emac driver in the process context
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1625 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
30d072eee8
commit
ce5eddd0a5
@ -93,6 +93,18 @@ void rt_init_thread_entry(void* parameter)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef RT_USING_LWIP
|
||||||
|
{
|
||||||
|
/* register ethernetif device */
|
||||||
|
eth_system_device_init();
|
||||||
|
rt_hw_macb_init();
|
||||||
|
/* re-init device driver */
|
||||||
|
rt_device_init_all();
|
||||||
|
/* init lwip system */
|
||||||
|
lwip_sys_init();
|
||||||
|
rt_kprintf("TCP/IP initialized!\n");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,15 +144,6 @@ void rtthread_startup(void)
|
|||||||
//rt_hw_sdcard_init();
|
//rt_hw_sdcard_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_LWIP
|
|
||||||
/* register ethernetif device */
|
|
||||||
eth_system_device_init();
|
|
||||||
rt_hw_macb_init();
|
|
||||||
/* init lwip system */
|
|
||||||
lwip_sys_init();
|
|
||||||
rt_kprintf("TCP/IP initialized!\n");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*init all registed devices */
|
/*init all registed devices */
|
||||||
rt_device_init_all();
|
rt_device_init_all();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user