diff options
| author | Dave Hylands <dhylands@gmail.com> | 2014-03-11 23:55:41 -0700 |
|---|---|---|
| committer | Dave Hylands <dhylands@gmail.com> | 2014-03-11 23:55:41 -0700 |
| commit | dd38d907244bc0e483c3d760f2ba464a394ec229 (patch) | |
| tree | 05869a4757c5a1b11b8baf206595551c7650f6e7 /stmhal/fatfs/src/integer.h | |
| parent | 8bfec2b53822e2b62c4577b32e0beae398a16297 (diff) | |
Initial checkin with STM HAL
This compiles and links, but hasn't been tested on a board
yet and even if it was run, it doesn't currently do anything.
Diffstat (limited to 'stmhal/fatfs/src/integer.h')
| -rw-r--r-- | stmhal/fatfs/src/integer.h | 34 |
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
+
|
