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

View File

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

View File

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

View File

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

View File

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

View File

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