my version
Fork of FATFileSystem by
ChaN/integer.h@4:3ff2606d5713, 2014-08-28 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Aug 28 13:15:31 2014 +0100
- Revision:
- 4:3ff2606d5713
- Parent:
- 1:46ce1e16c870
Synchronized with git revision fee50a80ffdc8f9d9ee97be545ff36b5a986f041
Full URL: https://github.com/mbedmicro/mbed/commit/fee50a80ffdc8f9d9ee97be545ff36b5a986f041/
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 1:46ce1e16c870 | 1 | /*-------------------------------------------*/ |
emilmont | 1:46ce1e16c870 | 2 | /* Integer type definitions for FatFs module */ |
emilmont | 1:46ce1e16c870 | 3 | /*-------------------------------------------*/ |
emilmont | 1:46ce1e16c870 | 4 | |
emilmont | 1:46ce1e16c870 | 5 | #ifndef _INTEGER |
emilmont | 1:46ce1e16c870 | 6 | #define _INTEGER |
emilmont | 1:46ce1e16c870 | 7 | |
emilmont | 1:46ce1e16c870 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
emilmont | 1:46ce1e16c870 | 9 | |
emilmont | 1:46ce1e16c870 | 10 | #include <windows.h> |
emilmont | 1:46ce1e16c870 | 11 | #include <tchar.h> |
emilmont | 1:46ce1e16c870 | 12 | |
emilmont | 1:46ce1e16c870 | 13 | #else /* Embedded platform */ |
emilmont | 1:46ce1e16c870 | 14 | |
emilmont | 1:46ce1e16c870 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
emilmont | 1:46ce1e16c870 | 16 | typedef int INT; |
emilmont | 1:46ce1e16c870 | 17 | typedef unsigned int UINT; |
emilmont | 1:46ce1e16c870 | 18 | |
emilmont | 1:46ce1e16c870 | 19 | /* These types must be 8-bit integer */ |
emilmont | 1:46ce1e16c870 | 20 | typedef char CHAR; |
emilmont | 1:46ce1e16c870 | 21 | typedef unsigned char UCHAR; |
emilmont | 1:46ce1e16c870 | 22 | typedef unsigned char BYTE; |
emilmont | 1:46ce1e16c870 | 23 | |
emilmont | 1:46ce1e16c870 | 24 | /* These types must be 16-bit integer */ |
emilmont | 1:46ce1e16c870 | 25 | typedef short SHORT; |
emilmont | 1:46ce1e16c870 | 26 | typedef unsigned short USHORT; |
emilmont | 1:46ce1e16c870 | 27 | typedef unsigned short WORD; |
emilmont | 1:46ce1e16c870 | 28 | typedef unsigned short WCHAR; |
emilmont | 1:46ce1e16c870 | 29 | |
emilmont | 1:46ce1e16c870 | 30 | /* These types must be 32-bit integer */ |
emilmont | 1:46ce1e16c870 | 31 | typedef long LONG; |
emilmont | 1:46ce1e16c870 | 32 | typedef unsigned long ULONG; |
emilmont | 1:46ce1e16c870 | 33 | typedef unsigned long DWORD; |
emilmont | 1:46ce1e16c870 | 34 | |
emilmont | 1:46ce1e16c870 | 35 | #endif |
emilmont | 1:46ce1e16c870 | 36 | |
emilmont | 1:46ce1e16c870 | 37 | #endif |