浏览代码

ls1bdev: init application after other things initialized

Grissiom 10 年之前
父节点
当前提交
bfc140826a
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      bsp/ls1bdev/applications/startup.c

+ 4 - 4
bsp/ls1bdev/applications/startup.c

@@ -64,9 +64,6 @@ void rtthread_startup(void)
 	/* init scheduler system */
 	rt_system_scheduler_init();
 
-	/* init application */
-	rt_application_init();
-
     /* initialize timer */
     rt_system_timer_init();
 
@@ -76,11 +73,14 @@ void rtthread_startup(void)
 	/* init idle thread */
 	rt_thread_idle_init();
 
+	/* init application */
+	rt_application_init();
+
 	/* start scheduler */
 	rt_system_scheduler_start();
 
 	/* never reach here */
-	return ;
+	return;
 }
 
 /*@}*/