提交 ce5eddd0 编写于 作者: L luohui2320@gmail.com

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
上级 30d072ee
......@@ -93,6 +93,18 @@ void rt_init_thread_entry(void* parameter)
}
#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();
#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 */
rt_device_init_all();
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册