diff --git a/bsp/simulator/applications/application.c b/bsp/simulator/applications/application.c index 2fca5dd121..ad4a38fec6 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 9508db90dc..84b9147103 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