aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/sys_defs.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-06-27 06:10:18 +0200
committerJoel Bodenmann <joel@unormal.org>2014-06-27 06:10:18 +0200
commit65602895a59f9e9c79ca65342ee3b843ba37183f (patch)
tree9110633ce9df9b2b99d550d9fd4bc46c76f6afaa /src/gfile/sys_defs.h
parent11e3d1fa22ee8df088621dfefe5ebfa4b0697d9c (diff)
downloaduGFX-65602895a59f9e9c79ca65342ee3b843ba37183f.tar.gz
uGFX-65602895a59f9e9c79ca65342ee3b843ba37183f.tar.bz2
uGFX-65602895a59f9e9c79ca65342ee3b843ba37183f.zip
FatFS complete implementation
Diffstat (limited to 'src/gfile/sys_defs.h')
-rw-r--r--src/gfile/sys_defs.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gfile/sys_defs.h b/src/gfile/sys_defs.h
index e4bced67..cf5235d2 100644
--- a/src/gfile/sys_defs.h
+++ b/src/gfile/sys_defs.h
@@ -200,10 +200,42 @@ extern "C" {
#if GFILE_NEED_CHIBIOSFS && GFX_USE_OS_CHIBIOS
GFILE * gfileOpenBaseFileStream(void *BaseFileStreamPtr, const char *mode);
#endif
+
#if GFILE_NEED_MEMFS
GFILE * gfileOpenMemory(void *memptr, const char *mode);
#endif
+ #if GFILE_NEED_FATFS
+ /**
+ * @brief Mount a logical drive (aka partition)
+ *
+ * @details Not supported by every file system
+ * @details Currently just one drive at one is supported.
+ *
+ * @param[in] fs The file system (F for FatFS)
+ * @param[in] drive The logical drive prefix
+ *
+ * @return TRUE on success, FALSE otherwise
+ *
+ * @api
+ */
+ bool_t gfileMount(char fs, const char *drive);
+
+ /**
+ * @brief Unmount a logical drive (aka partition)
+ *
+ * @details Does have no effect if @p gfileMount() as been called before hand
+ *
+ * @param[in] fs The file system (F for FatFS)
+ * @param[in] drive The logical drive prefix
+ *
+ * @return TRUE on success, FALSE otherwise
+ *
+ * @api
+ */
+ bool_t gfileUnmount(char fs, const char *drive);
+ #endif
+
#if GFILE_NEED_PRINTG
#include <stdarg.h>