[BSP] Remove rt_device_init_all() function invoking.

This commit is contained in:
bernard 2014-04-05 23:53:23 +08:00
parent db900ce5c0
commit 54326fcb82
6 changed files with 4 additions and 27 deletions

View File

@ -97,7 +97,7 @@ void rtthread_startup(void)
#endif
#endif
#ifdef RT_USING_MODULE
#ifdef RT_USING_MODULE
/* init module system */
rt_system_module_init();
#endif
@ -118,8 +118,6 @@ void rtthread_startup(void)
/* init sd card device */
rt_hw_sdcard_init();
#endif
/* init all device */
rt_device_init_all();
/* init application */
rt_application_init();
@ -149,7 +147,7 @@ int main(void)
/* disable interrupt first */
level = rt_hw_interrupt_disable();
rtthread_startup();
return 0;
}

View File

@ -118,8 +118,6 @@ void rtthread_startup(void)
/* init sd card device */
rt_hw_sdcard_init();
#endif
/* init all device */
rt_device_init_all();
/* init application */
rt_application_init();

View File

@ -118,8 +118,6 @@ void rtthread_startup(void)
/* init sd card device */
rt_hw_sdcard_init();
#endif
/* init all device */
rt_device_init_all();
/* init application */
rt_application_init();

View File

@ -126,9 +126,6 @@ void rtthread_startup(void)
/* rtc init */
rt_hw_rtc_init();
/*init all registed devices */
rt_device_init_all();
#endif
/* init application */

View File

@ -48,7 +48,7 @@ void rtthread_startup()
/* show version */
rt_show_version();
/* init tick */
rt_system_tick_init();
@ -65,12 +65,10 @@ void rtthread_startup()
rt_system_heap_init(&__bss_end, (void*)0x34000000);
#endif
/* init scheduler system */
rt_system_scheduler_init();
#ifdef RT_USING_DEVICE
#ifdef RT_USING_DFS
rt_hw_sdcard_init();
#endif
@ -79,9 +77,6 @@ void rtthread_startup()
eth_system_device_init();
rt_hw_dm9161_init();
#endif
/*init all registed devices */
rt_device_init_all();
#endif
/* init application */
@ -103,21 +98,15 @@ void rtthread_startup()
/* never reach here */
return ;
}
int main()
{
rt_uint32_t UNUSED level;
/* disable interrupt first */
level = rt_hw_interrupt_disable();
rt_hw_interrupt_disable();
/* startup RT-Thread RTOS */
rtthread_startup();
return 0;
}

View File

@ -122,9 +122,6 @@ void rt_init_thread_entry(void* parameter)
/* init touch panel */
rtgui_touch_hw_init();
/* re-init device driver */
rt_device_init_all();
/* find lcd device */
lcd = rt_device_find("lcd");