aboutsummaryrefslogtreecommitdiff
path: root/stmhal/fatfs/src/integer.h
diff options
context:
space:
mode:
authorDamien George2014-03-12 15:43:42 +0000
committerDamien George2014-03-12 15:43:42 +0000
commit8cc50d348d243b16926d0a690595f08178f7b5f4 (patch)
treef01eb25ea5f866abcd23701ca501942985e1ce28 /stmhal/fatfs/src/integer.h
parentb068b217426b95898a8eb31bf86c3b827a108099 (diff)
parentdd38d907244bc0e483c3d760f2ba464a394ec229 (diff)
Merge pull request #339 from dhylands/stmhal
Initial checkin with STM HAL
Diffstat (limited to 'stmhal/fatfs/src/integer.h')
-rw-r--r--stmhal/fatfs/src/integer.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/stmhal/fatfs/src/integer.h b/stmhal/fatfs/src/integer.h
new file mode 100644
index 000000000..4c37c432a
--- /dev/null
+++ b/stmhal/fatfs/src/integer.h
@@ -0,0 +1,34 @@
+/*-------------------------------------------*/
+/* Integer type definitions for FatFs module */
+/*-------------------------------------------*/
+
+#ifndef _FF_INTEGER
+#define _FF_INTEGER
+
+#ifdef _WIN32 /* FatFs development platform */
+
+#include <windows.h>
+#include <tchar.h>
+
+#else /* Embedded platform */
+
+/* This type MUST be 8 bit */
+typedef unsigned char BYTE;
+
+/* These types MUST be 16 bit */
+typedef short SHORT;
+typedef unsigned short WORD;
+typedef unsigned short WCHAR;
+
+/* These types MUST be 16 bit or 32 bit */
+typedef int INT;
+typedef unsigned int UINT;
+
+/* These types MUST be 32 bit */
+typedef long LONG;
+typedef unsigned long DWORD;
+
+#endif
+
+#endif
+