Browse Source

[bsp][ls1c]remove rt_components_init

sundm75 7 years ago
parent
commit
05aea0f8cb
1 changed files with 2 additions and 8 deletions
  1. 2 8
      bsp/ls1cdev/applications/application.c

+ 2 - 8
bsp/ls1cdev/applications/application.c

@@ -21,17 +21,11 @@
 
 void rt_init_thread_entry(void *parameter)
 {
+#ifdef RT_USING_COMPONENTS_INIT
     /* initialization RT-Thread Components */
     rt_components_init();
-
+#endif
 #if defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT)
-
-    /* initialize the device file system */
-    dfs_init();
-
-    /* initialize the elm chan FatFS file system*/
-    elm_init();
-    
     /* mount sd card fat partition 1 as root directory */
     if( dfs_mount("sd0", "/", "elm", 0, 0) == 0)
     {