]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/integer.h
Integrate fatfs. Add some sd card test commands.
[z180-stamp.git] / include / integer.h
similarity index 51%
rename from fatfs/src/integer.h
rename to include/integer.h
index 074a46bd5bbe54df12d05b2362b8f19db83c4c09..a263f7c914af655884476ebd634c1a27d4fd44e6 100644 (file)
@@ -5,29 +5,22 @@
 #ifndef _FF_INTEGER\r
 #define _FF_INTEGER\r
 \r
-#ifdef _WIN32  /* FatFs development platform */\r
-\r
-#include <windows.h>\r
-#include <tchar.h>\r
-\r
-#else                  /* Embedded platform */\r
+#include <stdint.h>\r
 \r
 /* This type MUST be 8 bit */\r
-typedef unsigned char  BYTE;\r
+typedef uint8_t                BYTE;\r
 \r
 /* These types MUST be 16 bit */\r
-typedef short                  SHORT;\r
-typedef unsigned short WORD;\r
-typedef unsigned short WCHAR;\r
+typedef int16_t                SHORT;\r
+typedef uint16_t       WORD;\r
+typedef uint16_t       WCHAR;\r
 \r
 /* These types MUST be 16 bit or 32 bit */\r
-typedef int                            INT;\r
+typedef int            INT;\r
 typedef unsigned int   UINT;\r
 \r
 /* These types MUST be 32 bit */\r
-typedef long                   LONG;\r
-typedef unsigned long  DWORD;\r
-\r
-#endif\r
+typedef int32_t                LONG;\r
+typedef uint32_t       DWORD;\r
 \r
 #endif\r