-
Dependents: RSALB_hbridge_helloworld RSALB_lobster WavPlayer_test AudioCODEC_HelloWorld ... more
Fork of FatFileSystemCpp by
integer.h@2:e869ee8f3c3d, 2012-09-19 (annotated)
- Committer:
- p07gbar
- Date:
- Wed Sep 19 11:03:35 2012 +0000
- Revision:
- 2:e869ee8f3c3d
- Parent:
- 0:6ceefe1c53e4
-
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
p07gbar | 2:e869ee8f3c3d | 1 | /*-------------------------------------------*/ |
p07gbar | 2:e869ee8f3c3d | 2 | /* Integer type definitions for FatFs module */ |
p07gbar | 2:e869ee8f3c3d | 3 | /*-------------------------------------------*/ |
p07gbar | 2:e869ee8f3c3d | 4 | |
p07gbar | 2:e869ee8f3c3d | 5 | #ifndef _INTEGER |
p07gbar | 2:e869ee8f3c3d | 6 | #define _INTEGER |
p07gbar | 2:e869ee8f3c3d | 7 | |
p07gbar | 2:e869ee8f3c3d | 8 | #ifdef _WIN32 /* FatFs development platform */ |
p07gbar | 2:e869ee8f3c3d | 9 | |
p07gbar | 2:e869ee8f3c3d | 10 | #include <windows.h> |
p07gbar | 2:e869ee8f3c3d | 11 | #include <tchar.h> |
p07gbar | 2:e869ee8f3c3d | 12 | |
p07gbar | 2:e869ee8f3c3d | 13 | #else /* Embedded platform */ |
p07gbar | 2:e869ee8f3c3d | 14 | |
p07gbar | 2:e869ee8f3c3d | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
p07gbar | 2:e869ee8f3c3d | 16 | typedef int INT; |
p07gbar | 2:e869ee8f3c3d | 17 | typedef unsigned int UINT; |
p07gbar | 2:e869ee8f3c3d | 18 | |
p07gbar | 2:e869ee8f3c3d | 19 | /* These types must be 8-bit integer */ |
p07gbar | 2:e869ee8f3c3d | 20 | typedef char CHAR; |
p07gbar | 2:e869ee8f3c3d | 21 | typedef unsigned char UCHAR; |
p07gbar | 2:e869ee8f3c3d | 22 | typedef unsigned char BYTE; |
p07gbar | 2:e869ee8f3c3d | 23 | |
p07gbar | 2:e869ee8f3c3d | 24 | /* These types must be 16-bit integer */ |
p07gbar | 2:e869ee8f3c3d | 25 | typedef short SHORT; |
p07gbar | 2:e869ee8f3c3d | 26 | typedef unsigned short USHORT; |
p07gbar | 2:e869ee8f3c3d | 27 | typedef unsigned short WORD; |
p07gbar | 2:e869ee8f3c3d | 28 | typedef unsigned short WCHAR; |
p07gbar | 2:e869ee8f3c3d | 29 | |
p07gbar | 2:e869ee8f3c3d | 30 | /* These types must be 32-bit integer */ |
p07gbar | 2:e869ee8f3c3d | 31 | typedef long LONG; |
p07gbar | 2:e869ee8f3c3d | 32 | typedef unsigned long ULONG; |
p07gbar | 2:e869ee8f3c3d | 33 | typedef unsigned long DWORD; |
p07gbar | 2:e869ee8f3c3d | 34 | |
p07gbar | 2:e869ee8f3c3d | 35 | #endif |
p07gbar | 2:e869ee8f3c3d | 36 | |
p07gbar | 2:e869ee8f3c3d | 37 | #endif |