dd
Dependencies: C12832 LM75B mbed
_Log/FileSystem/FatFileSystem/integer.h@0:05a20e3e3179, 2015-04-21 (annotated)
- Committer:
- pfe
- Date:
- Tue Apr 21 10:16:20 2015 +0000
- Revision:
- 0:05a20e3e3179
dd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pfe | 0:05a20e3e3179 | 1 | /*-------------------------------------------*/ |
pfe | 0:05a20e3e3179 | 2 | /* Integer type definitions for FatFs module */ |
pfe | 0:05a20e3e3179 | 3 | /*-------------------------------------------*/ |
pfe | 0:05a20e3e3179 | 4 | |
pfe | 0:05a20e3e3179 | 5 | #ifndef _INTEGER |
pfe | 0:05a20e3e3179 | 6 | #define _INTEGER |
pfe | 0:05a20e3e3179 | 7 | |
pfe | 0:05a20e3e3179 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
pfe | 0:05a20e3e3179 | 9 | |
pfe | 0:05a20e3e3179 | 10 | #include <windows.h> |
pfe | 0:05a20e3e3179 | 11 | #include <tchar.h> |
pfe | 0:05a20e3e3179 | 12 | |
pfe | 0:05a20e3e3179 | 13 | #else /* Embedded platform */ |
pfe | 0:05a20e3e3179 | 14 | |
pfe | 0:05a20e3e3179 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
pfe | 0:05a20e3e3179 | 16 | typedef int INT; |
pfe | 0:05a20e3e3179 | 17 | typedef unsigned int UINT; |
pfe | 0:05a20e3e3179 | 18 | |
pfe | 0:05a20e3e3179 | 19 | /* These types must be 8-bit integer */ |
pfe | 0:05a20e3e3179 | 20 | typedef char CHAR; |
pfe | 0:05a20e3e3179 | 21 | typedef unsigned char UCHAR; |
pfe | 0:05a20e3e3179 | 22 | typedef unsigned char BYTE; |
pfe | 0:05a20e3e3179 | 23 | |
pfe | 0:05a20e3e3179 | 24 | /* These types must be 16-bit integer */ |
pfe | 0:05a20e3e3179 | 25 | typedef short SHORT; |
pfe | 0:05a20e3e3179 | 26 | typedef unsigned short USHORT; |
pfe | 0:05a20e3e3179 | 27 | typedef unsigned short WORD; |
pfe | 0:05a20e3e3179 | 28 | typedef unsigned short WCHAR; |
pfe | 0:05a20e3e3179 | 29 | |
pfe | 0:05a20e3e3179 | 30 | /* These types must be 32-bit integer */ |
pfe | 0:05a20e3e3179 | 31 | typedef long LONG; |
pfe | 0:05a20e3e3179 | 32 | typedef unsigned long ULONG; |
pfe | 0:05a20e3e3179 | 33 | typedef unsigned long DWORD; |
pfe | 0:05a20e3e3179 | 34 | |
pfe | 0:05a20e3e3179 | 35 | #endif |
pfe | 0:05a20e3e3179 | 36 | |
pfe | 0:05a20e3e3179 | 37 | #endif |