From 54326fcb822f6c1480dc103d44aa991c16731df5 Mon Sep 17 00:00:00 2001 From: bernard Date: Sat, 5 Apr 2014 23:53:23 +0800 Subject: [PATCH] [BSP] Remove rt_device_init_all() function invoking. --- bsp/lm3s8962/applications/startup.c | 6 ++---- bsp/lm3s9b9x/applications/startup.c | 2 -- bsp/lm4f232/applications/startup.c | 2 -- bsp/mini2440/startup.c | 3 --- bsp/mini4020/applications/startup.c | 15 ++------------- bsp/stm32f10x/applications/application.c | 3 --- 6 files changed, 4 insertions(+), 27 deletions(-) diff --git a/bsp/lm3s8962/applications/startup.c b/bsp/lm3s8962/applications/startup.c index a38733494f..2f183aca1f 100644 --- a/bsp/lm3s8962/applications/startup.c +++ b/bsp/lm3s8962/applications/startup.c @@ -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; } diff --git a/bsp/lm3s9b9x/applications/startup.c b/bsp/lm3s9b9x/applications/startup.c index 9f72d9c8df..c13e80da50 100644 --- a/bsp/lm3s9b9x/applications/startup.c +++ b/bsp/lm3s9b9x/applications/startup.c @@ -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(); diff --git a/bsp/lm4f232/applications/startup.c b/bsp/lm4f232/applications/startup.c index 4572ab350d..b22095f06e 100644 --- a/bsp/lm4f232/applications/startup.c +++ b/bsp/lm4f232/applications/startup.c @@ -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(); diff --git a/bsp/mini2440/startup.c b/bsp/mini2440/startup.c index cf8ff261c2..349d5f68f0 100644 --- a/bsp/mini2440/startup.c +++ b/bsp/mini2440/startup.c @@ -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 */ diff --git a/bsp/mini4020/applications/startup.c b/bsp/mini4020/applications/startup.c index 852b9dc897..3ba4d15d75 100644 --- a/bsp/mini4020/applications/startup.c +++ b/bsp/mini4020/applications/startup.c @@ -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; } - - - diff --git a/bsp/stm32f10x/applications/application.c b/bsp/stm32f10x/applications/application.c index d57bb4e4c0..58720cf0f1 100644 --- a/bsp/stm32f10x/applications/application.c +++ b/bsp/stm32f10x/applications/application.c @@ -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");