aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/sys_defs.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-06-27 23:04:01 +1000
committerinmarket <andrewh@inmarket.com.au>2014-06-27 23:04:01 +1000
commita9f1520e02ed5425abbfb7e621f103053c2e3799 (patch)
treec4cf5e3b238bf83b58aaac87d03dc02746d56881 /src/gfile/sys_defs.h
parentc2a27f3e7c5700be2eb2f29bcfb677241f62703e (diff)
downloaduGFX-a9f1520e02ed5425abbfb7e621f103053c2e3799.tar.gz
uGFX-a9f1520e02ed5425abbfb7e621f103053c2e3799.tar.bz2
uGFX-a9f1520e02ed5425abbfb7e621f103053c2e3799.zip
Fatfs Cleanup
Diffstat (limited to 'src/gfile/sys_defs.h')
-rw-r--r--src/gfile/sys_defs.h60
1 files changed, 29 insertions, 31 deletions
diff --git a/src/gfile/sys_defs.h b/src/gfile/sys_defs.h
index cf5235d2..6b1d27ff 100644
--- a/src/gfile/sys_defs.h
+++ b/src/gfile/sys_defs.h
@@ -197,6 +197,35 @@ extern "C" {
*/
bool_t gfileEOF(GFILE *f);
+ /**
+ * @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);
+
#if GFILE_NEED_CHIBIOSFS && GFX_USE_OS_CHIBIOS
GFILE * gfileOpenBaseFileStream(void *BaseFileStreamPtr, const char *mode);
#endif
@@ -205,37 +234,6 @@ extern "C" {
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>