summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/lufa/LUFA-git/Projects/TempDataLogger/Lib/FATFs/integer.h
diff options
context:
space:
mode:
authortmk2015-05-13 11:13:10 +0900
committertmk2015-05-13 11:13:10 +0900
commitf1f2066657f4a0998adc016c95d7e541b436e09f (patch)
treed056cb656b538c4f3a3c205363e0070976655e2e /tmk_core/protocol/lufa/LUFA-git/Projects/TempDataLogger/Lib/FATFs/integer.h
parent1c73e574f109a17566db99e399bdf86007488d2a (diff)
parentf6d56675f9f981c5464f0ca7a1fbb0162154e8c5 (diff)
Merge commit 'f6d56675f9f981c5464f0ca7a1fbb0162154e8c5'
Diffstat (limited to 'tmk_core/protocol/lufa/LUFA-git/Projects/TempDataLogger/Lib/FATFs/integer.h')
-rw-r--r--tmk_core/protocol/lufa/LUFA-git/Projects/TempDataLogger/Lib/FATFs/integer.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/tmk_core/protocol/lufa/LUFA-git/Projects/TempDataLogger/Lib/FATFs/integer.h b/tmk_core/protocol/lufa/LUFA-git/Projects/TempDataLogger/Lib/FATFs/integer.h
new file mode 100644
index 000000000..5408fe6b3
--- /dev/null
+++ b/tmk_core/protocol/lufa/LUFA-git/Projects/TempDataLogger/Lib/FATFs/integer.h
@@ -0,0 +1,38 @@
+/*-------------------------------------------*/
+/* Integer type definitions for FatFs module */
+/*-------------------------------------------*/
+
+#ifndef _INTEGER
+#define _INTEGER
+
+#ifdef _WIN32 /* FatFs development platform */
+
+#include <windows.h>
+#include <tchar.h>
+
+#else /* Embedded platform */
+
+/* These types must be 16-bit, 32-bit or larger integer */
+typedef int INT;
+typedef unsigned int UINT;
+
+/* These types must be 8-bit integer */
+typedef char CHAR;
+typedef unsigned char UCHAR;
+typedef unsigned char BYTE;
+
+/* These types must be 16-bit integer */
+typedef short SHORT;
+typedef unsigned short USHORT;
+typedef unsigned short WORD;
+typedef unsigned short WCHAR;
+
+/* These types must be 32-bit integer */
+typedef long LONG;
+typedef unsigned long ULONG;
+typedef unsigned long DWORD;
+
+#endif
+
+#endif
+