diff options
| author | Damien George | 2014-03-12 15:43:42 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-12 15:43:42 +0000 |
| commit | 8cc50d348d243b16926d0a690595f08178f7b5f4 (patch) | |
| tree | f01eb25ea5f866abcd23701ca501942985e1ce28 /stmhal/fatfs/src/integer.h | |
| parent | b068b217426b95898a8eb31bf86c3b827a108099 (diff) | |
| parent | dd38d907244bc0e483c3d760f2ba464a394ec229 (diff) | |
Merge pull request #339 from dhylands/stmhal
Initial checkin with STM HAL
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
+
|
