diff options
| author | Damien <damien.p.george@gmail.com> | 2013-10-13 00:42:20 +0100 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-10-13 00:42:20 +0100 |
| commit | ed65605edc5c1376947a34723b9c750400b5a028 (patch) | |
| tree | d0317e867c4286ec7c889fc9ed18591a1d9990dd /stm/fatfs/integer.h | |
| parent | 3ef4abb446dfcbdbc426a0921a33e0883607e677 (diff) | |
Inital commit of stm32f4xx framework.
Diffstat (limited to 'stm/fatfs/integer.h')
| -rw-r--r-- | stm/fatfs/integer.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/stm/fatfs/integer.h b/stm/fatfs/integer.h new file mode 100644 index 000000000..074a46bd5 --- /dev/null +++ b/stm/fatfs/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
|
