Simon Ford
/
fat
integer.h@0:560a6744936c, 2010-07-21 (annotated)
- Committer:
- simon
- Date:
- Wed Jul 21 11:02:49 2010 +0000
- Revision:
- 0:560a6744936c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:560a6744936c | 1 | /*-------------------------------------------*/ |
simon | 0:560a6744936c | 2 | /* Integer type definitions for FatFs module */ |
simon | 0:560a6744936c | 3 | /*-------------------------------------------*/ |
simon | 0:560a6744936c | 4 | |
simon | 0:560a6744936c | 5 | #ifndef _INTEGER |
simon | 0:560a6744936c | 6 | |
simon | 0:560a6744936c | 7 | /* These types must be 16-bit, 32-bit or larger integer */ |
simon | 0:560a6744936c | 8 | typedef int INT; |
simon | 0:560a6744936c | 9 | typedef unsigned int UINT; |
simon | 0:560a6744936c | 10 | |
simon | 0:560a6744936c | 11 | /* These types must be 8-bit integer */ |
simon | 0:560a6744936c | 12 | typedef signed char CHAR; |
simon | 0:560a6744936c | 13 | typedef unsigned char UCHAR; |
simon | 0:560a6744936c | 14 | typedef unsigned char BYTE; |
simon | 0:560a6744936c | 15 | |
simon | 0:560a6744936c | 16 | /* These types must be 16-bit integer */ |
simon | 0:560a6744936c | 17 | typedef short SHORT; |
simon | 0:560a6744936c | 18 | typedef unsigned short USHORT; |
simon | 0:560a6744936c | 19 | typedef unsigned short WORD; |
simon | 0:560a6744936c | 20 | |
simon | 0:560a6744936c | 21 | /* These types must be 32-bit integer */ |
simon | 0:560a6744936c | 22 | typedef long LONG; |
simon | 0:560a6744936c | 23 | typedef unsigned long ULONG; |
simon | 0:560a6744936c | 24 | typedef unsigned long DWORD; |
simon | 0:560a6744936c | 25 | |
simon | 0:560a6744936c | 26 | /* Boolean type */ |
simon | 0:560a6744936c | 27 | typedef enum { FALSE = 0, TRUE } BOOL; |
simon | 0:560a6744936c | 28 | |
simon | 0:560a6744936c | 29 | #define _INTEGER |
simon | 0:560a6744936c | 30 | #endif |