From 2eefeab24285c507844d8b0059bacaac0bb7dc20 Mon Sep 17 00:00:00 2001 From: "goprife@gmail.com" Date: Fri, 16 Nov 2012 12:21:28 +0000 Subject: [PATCH] update app code in simulator git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2421 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/simulator/applications/application.c | 2 +- bsp/simulator/applications/platform.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/simulator/applications/application.c b/bsp/simulator/applications/application.c index 2fca5dd12..ad4a38fec 100644 --- a/bsp/simulator/applications/application.c +++ b/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) { diff --git a/bsp/simulator/applications/platform.c b/bsp/simulator/applications/platform.c index 9508db90d..84b914710 100644 --- a/bsp/simulator/applications/platform.c +++ b/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