Browse Source

update app code in simulator

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2421 bbd45198-f89e-11dd-88c7-29a3b14d5316
goprife@gmail.com 12 years ago
parent
commit
2eefeab242
2 changed files with 3 additions and 3 deletions
  1. 1 1
      bsp/simulator/applications/application.c
  2. 2 2
      bsp/simulator/applications/platform.c

+ 1 - 1
bsp/simulator/applications/application.c

@@ -43,7 +43,7 @@ void rt_init_thread_entry(void* parameter)
             rt_kprintf("fatfs initialzation failed!\n");
 #endif
 
-#ifdef RT_USING_DFS_ELMFAT
+#ifdef RT_USING_DFS_UFFS
         /* mount sd card fat partition 1 as root directory */
         if (dfs_mount("nand0", "/nand", "uffs", 0, 0) == 0)
         {

+ 2 - 2
bsp/simulator/applications/platform.c

@@ -9,11 +9,11 @@ void rt_platform_init(void)
     rt_hw_sdcard_init();
 #endif 
 
-#ifdef RT_USING_MTD_NAND
+#if defined(RT_USING_MTD_NAND) && defined(RT_USING_DFS_UFFS)
     rt_hw_mtd_nand_init();
 #endif 
 
-#ifdef RT_USING_MTD_NOR
+#if defined(RT_USING_MTD_NOR) && defined(RT_USING_DFS_JFFS2)
     sst25vfxx_mtd_init("nor", 0, RT_UINT32_MAX);
 #endif