diff options
author | Leo C | 2014-08-19 15:35:51 +0200 |
---|---|---|
committer | Leo C | 2014-08-19 15:35:51 +0200 |
commit | 4bc81323e51ac138e733c14eeb6f283ae706e904 (patch) | |
tree | bcbfa6e9483998fd03953a9719eee8d7813adfb2 /fatfs/src/integer.h | |
parent | dfe91b60ea6c3184dcf3ce7310b2824890ce1b1a (diff) | |
parent | 5366852335044c1e68a5c32548d3051cc943552f (diff) | |
download | z180-stamp-4bc81323e51ac138e733c14eeb6f283ae706e904.zip |
Merge tag 'fatfs-0.10b'
Diffstat (limited to 'fatfs/src/integer.h')
-rw-r--r-- | fatfs/src/integer.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/fatfs/src/integer.h b/fatfs/src/integer.h new file mode 100644 index 0000000..074a46b --- /dev/null +++ b/fatfs/src/integer.h @@ -0,0 +1,33 @@ +/*-------------------------------------------*/
+/* 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
|