clean code in bsp/simulator/application/application.c
This commit is contained in:
parent
fbbc4c8d18
commit
f2636ea813
|
@ -50,8 +50,11 @@ void rt_init_thread_entry(void *parameter)
|
||||||
|
|
||||||
#ifdef RT_USING_DFS_ELMFAT
|
#ifdef RT_USING_DFS_ELMFAT
|
||||||
/* mount sd card fatfs as root directory */
|
/* mount sd card fatfs as root directory */
|
||||||
//if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0)
|
#ifdef _WIN32
|
||||||
|
if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0)
|
||||||
|
#else
|
||||||
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
|
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
|
||||||
|
#endif
|
||||||
rt_kprintf("fatfs initialized!\n");
|
rt_kprintf("fatfs initialized!\n");
|
||||||
else
|
else
|
||||||
rt_kprintf("fatfs initialization failed!\n");
|
rt_kprintf("fatfs initialization failed!\n");
|
||||||
|
@ -75,11 +78,6 @@ void rt_init_thread_entry(void *parameter)
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(RT_USING_RTGUI)
|
|
||||||
//rt_thread_delay(RT_TICK_PER_SECOND);
|
|
||||||
//snake_main();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rt_test_thread_entry(void *parameter)
|
static void rt_test_thread_entry(void *parameter)
|
||||||
|
|
Loading…
Reference in New Issue