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