test
chan_fs/integer.h@0:c1253c12d4bc, 2010-02-21 (annotated)
- Committer:
- emh203
- Date:
- Sun Feb 21 02:45:09 2010 +0000
- Revision:
- 0:c1253c12d4bc
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emh203 | 0:c1253c12d4bc | 1 | /*-------------------------------------------*/ |
emh203 | 0:c1253c12d4bc | 2 | /* Integer type definitions for FatFs module */ |
emh203 | 0:c1253c12d4bc | 3 | /*-------------------------------------------*/ |
emh203 | 0:c1253c12d4bc | 4 | |
emh203 | 0:c1253c12d4bc | 5 | #ifndef _INTEGER |
emh203 | 0:c1253c12d4bc | 6 | |
emh203 | 0:c1253c12d4bc | 7 | #if 0 |
emh203 | 0:c1253c12d4bc | 8 | #include <windows.h> |
emh203 | 0:c1253c12d4bc | 9 | #else |
emh203 | 0:c1253c12d4bc | 10 | |
emh203 | 0:c1253c12d4bc | 11 | /* These types must be 16-bit, 32-bit or larger integer */ |
emh203 | 0:c1253c12d4bc | 12 | typedef int INT; |
emh203 | 0:c1253c12d4bc | 13 | typedef unsigned int UINT; |
emh203 | 0:c1253c12d4bc | 14 | |
emh203 | 0:c1253c12d4bc | 15 | /* These types must be 8-bit integer */ |
emh203 | 0:c1253c12d4bc | 16 | typedef signed char CHAR; |
emh203 | 0:c1253c12d4bc | 17 | typedef unsigned char UCHAR; |
emh203 | 0:c1253c12d4bc | 18 | typedef unsigned char BYTE; |
emh203 | 0:c1253c12d4bc | 19 | |
emh203 | 0:c1253c12d4bc | 20 | /* These types must be 16-bit integer */ |
emh203 | 0:c1253c12d4bc | 21 | typedef short SHORT; |
emh203 | 0:c1253c12d4bc | 22 | typedef unsigned short USHORT; |
emh203 | 0:c1253c12d4bc | 23 | typedef unsigned short WORD; |
emh203 | 0:c1253c12d4bc | 24 | typedef unsigned short WCHAR; |
emh203 | 0:c1253c12d4bc | 25 | |
emh203 | 0:c1253c12d4bc | 26 | /* These types must be 32-bit integer */ |
emh203 | 0:c1253c12d4bc | 27 | typedef long LONG; |
emh203 | 0:c1253c12d4bc | 28 | typedef unsigned long ULONG; |
emh203 | 0:c1253c12d4bc | 29 | typedef unsigned long DWORD; |
emh203 | 0:c1253c12d4bc | 30 | |
emh203 | 0:c1253c12d4bc | 31 | /* Boolean type */ |
emh203 | 0:c1253c12d4bc | 32 | typedef enum { FALSE = 0, TRUE } BOOL; |
emh203 | 0:c1253c12d4bc | 33 | |
emh203 | 0:c1253c12d4bc | 34 | #endif |
emh203 | 0:c1253c12d4bc | 35 | |
emh203 | 0:c1253c12d4bc | 36 | #define _INTEGER |
emh203 | 0:c1253c12d4bc | 37 | #endif |