summaryrefslogtreecommitdiff
path: root/filesystem
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-01-21 14:12:40 +0000
committerbernard.xiong <[email protected]>2010-01-21 14:12:40 +0000
commitcefc4f7aa5f819f8f4f5aa9f356d33076f9b0af2 (patch)
treec718fc281333497b443bf9c2aba39dba9c2c1fbb /filesystem
parentc28ecae7edc0d9e066c99eb8ad040a73dba56525 (diff)
change play thread to static thread. use elm fatfs on radio project.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@329 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'filesystem')
-rw-r--r--filesystem/dfs/filesystems/elmfat/dfs_elm.c2
-rw-r--r--filesystem/dfs/filesystems/elmfat/ff.h7
2 files changed, 7 insertions, 2 deletions
diff --git a/filesystem/dfs/filesystems/elmfat/dfs_elm.c b/filesystem/dfs/filesystems/elmfat/dfs_elm.c
index 332617af58..654536a5d8 100644
--- a/filesystem/dfs/filesystems/elmfat/dfs_elm.c
+++ b/filesystem/dfs/filesystems/elmfat/dfs_elm.c
@@ -95,7 +95,7 @@ int dfs_elm_unmount(struct dfs_filesystem* fs)
RT_ASSERT(fat != RT_NULL);
/* elm not support unmount */
- RT_ASSERT(0);
+ rt_kprintf("elm fatfs not support unmount\n");
return 0;
}
diff --git a/filesystem/dfs/filesystems/elmfat/ff.h b/filesystem/dfs/filesystems/elmfat/ff.h
index 505a805383..d64a1e6325 100644
--- a/filesystem/dfs/filesystems/elmfat/ff.h
+++ b/filesystem/dfs/filesystems/elmfat/ff.h
@@ -25,7 +25,12 @@
#ifndef _FATFS
#define _FATFS 0x007C
+#ifdef RT_DFS_ELM_WORD_ACCESS
+#define _WORD_ACCESS 1
+#else
#define _WORD_ACCESS 0
+#endif
+
/* The _WORD_ACCESS option defines which access method is used to the word
/ data in the FAT structure.
/
@@ -104,7 +109,7 @@
*/
-#define _USE_LFN 1
+#define _USE_LFN 0
#define _MAX_LFN 255 /* Maximum LFN length to handle (max:255) */
/* The _USE_LFN option switches the LFN support.
/