Преглед изворни кода

[BSP] Remove rt_device_init_all() function invoking.

bernard пре 11 година
родитељ
комит
54326fcb82

+ 2 - 4
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;
 }
 

+ 0 - 2
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();

+ 0 - 2
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();

+ 0 - 3
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 */

+ 2 - 13
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;
 }
-
-
-

+ 0 - 3
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");