summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-11-03 07:15:22 +0000
committerbernard.xiong <[email protected]>2009-11-03 07:15:22 +0000
commit6423349c34840e79590cd4f94c242cad802d643f (patch)
tree1a556da0a542d63dba8369938495b4e9f5a72cf1 /bsp
parentcd65a07f34a0813493daf5fbd448500afdd77c33 (diff)
add elm chan's fatfs init
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@144 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm3210/application.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/bsp/stm3210/application.c b/bsp/stm3210/application.c
index f3a37e583e..b88e7dee52 100644
--- a/bsp/stm3210/application.c
+++ b/bsp/stm3210/application.c
@@ -42,6 +42,8 @@ void rt_init_thread_entry(void* parameter)
{
/* init the device filesystem */
dfs_init();
+
+#ifdef RT_USING_DFS_EFSL
/* init the efsl filesystam*/
efsl_init();
@@ -52,7 +54,18 @@ void rt_init_thread_entry(void* parameter)
}
else
rt_kprintf("File System initialzation failed!\n");
+#elif defined(RT_USING_DFS_ELMFAT)
+ /* init the elm chan FatFs filesystam*/
+ elm_init();
+ /* mount sd card fat partition 1 as root directory */
+ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
+ {
+ rt_kprintf("File System initialized!\n");
+ }
+ else
+ rt_kprintf("File System initialzation failed!\n");
+#endif
}
#endif