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