aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/fatfs_wrapper.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-08-13 15:48:16 +1000
committerinmarket <andrewh@inmarket.com.au>2014-08-13 15:48:16 +1000
commitefa13a879df590ce0043a5b4f97597484bf264e1 (patch)
treedcded7e06aa5467496d4f9aa365e00fb096a6801 /src/gfile/fatfs_wrapper.h
parent10902154aec652a3fcdf028b2c6ff16743464973 (diff)
downloaduGFX-efa13a879df590ce0043a5b4f97597484bf264e1.tar.gz
uGFX-efa13a879df590ce0043a5b4f97597484bf264e1.tar.bz2
uGFX-efa13a879df590ce0043a5b4f97597484bf264e1.zip
Move 3rd Party source to a new directory.
Rationalise Fatfs code and fix a couple of configuration issues.
Diffstat (limited to 'src/gfile/fatfs_wrapper.h')
-rw-r--r--src/gfile/fatfs_wrapper.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gfile/fatfs_wrapper.h b/src/gfile/fatfs_wrapper.h
new file mode 100644
index 00000000..fc08815b
--- /dev/null
+++ b/src/gfile/fatfs_wrapper.h
@@ -0,0 +1,32 @@
+/*
+ * This file is subject to the terms of the GFX License. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ * http://ugfx.org/license.html
+ */
+
+/**
+ * @file src/gfile/fatfs_wrapper.h
+ * @brief GFILE FATFS wrapper.
+ *
+ */
+
+#ifndef _FATFS_WRAPPER
+#define _FATFS_WRAPPER
+
+// Include the fatfs configuration from the local directory not the original source folder
+#include "ffconf.h"
+
+// Prevent preprocessor redefinition warnings
+#include "3rdparty/fatfs-0.10b/src/integer.h"
+#if defined(_T) && !defined(_INC_TCHAR)
+ #define _INC_TCHAR
+#endif
+
+// Include the fatfs API
+#include "3rdparty/fatfs-0.10b/src/ff.h"
+
+// Include the fatfs diskio API
+#include "3rdparty/fatfs-0.10b/src/diskio.h"
+
+#endif //_FATFS_WRAPPER