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:
luohui2320@gmail.com 2011-07-11 14:33:55 +00:00
parent 30d072eee8
commit ce5eddd0a5
2 changed files with 12 additions and 9 deletions

View File

@ -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
} }

View File

@ -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