Preliminary main mbed library for nexpaq development
libraries/fs/fat/ChaN/integer.h@1:d96dbedaebdb, 2016-11-04 (annotated)
- Committer:
- nexpaq
- Date:
- Fri Nov 04 20:54:50 2016 +0000
- Revision:
- 1:d96dbedaebdb
- Parent:
- 0:6c56fb4bc5f0
Removed extra directories for other platforms
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nexpaq | 0:6c56fb4bc5f0 | 1 | /*-------------------------------------------*/ |
nexpaq | 0:6c56fb4bc5f0 | 2 | /* Integer type definitions for FatFs module */ |
nexpaq | 0:6c56fb4bc5f0 | 3 | /*-------------------------------------------*/ |
nexpaq | 0:6c56fb4bc5f0 | 4 | |
nexpaq | 0:6c56fb4bc5f0 | 5 | #ifndef _FF_INTEGER |
nexpaq | 0:6c56fb4bc5f0 | 6 | #define _FF_INTEGER |
nexpaq | 0:6c56fb4bc5f0 | 7 | |
nexpaq | 0:6c56fb4bc5f0 | 8 | #ifdef _WIN32 /* Development platform */ |
nexpaq | 0:6c56fb4bc5f0 | 9 | |
nexpaq | 0:6c56fb4bc5f0 | 10 | #include <windows.h> |
nexpaq | 0:6c56fb4bc5f0 | 11 | #include <tchar.h> |
nexpaq | 0:6c56fb4bc5f0 | 12 | |
nexpaq | 0:6c56fb4bc5f0 | 13 | #else /* Embedded platform */ |
nexpaq | 0:6c56fb4bc5f0 | 14 | |
nexpaq | 0:6c56fb4bc5f0 | 15 | /* This type MUST be 8-bit */ |
nexpaq | 0:6c56fb4bc5f0 | 16 | typedef unsigned char BYTE; |
nexpaq | 0:6c56fb4bc5f0 | 17 | |
nexpaq | 0:6c56fb4bc5f0 | 18 | /* These types MUST be 16-bit */ |
nexpaq | 0:6c56fb4bc5f0 | 19 | typedef short SHORT; |
nexpaq | 0:6c56fb4bc5f0 | 20 | typedef unsigned short WORD; |
nexpaq | 0:6c56fb4bc5f0 | 21 | typedef unsigned short WCHAR; |
nexpaq | 0:6c56fb4bc5f0 | 22 | |
nexpaq | 0:6c56fb4bc5f0 | 23 | /* These types MUST be 16-bit or 32-bit */ |
nexpaq | 0:6c56fb4bc5f0 | 24 | typedef int INT; |
nexpaq | 0:6c56fb4bc5f0 | 25 | typedef unsigned int UINT; |
nexpaq | 0:6c56fb4bc5f0 | 26 | |
nexpaq | 0:6c56fb4bc5f0 | 27 | /* These types MUST be 32-bit */ |
nexpaq | 0:6c56fb4bc5f0 | 28 | typedef long LONG; |
nexpaq | 0:6c56fb4bc5f0 | 29 | typedef unsigned long DWORD; |
nexpaq | 0:6c56fb4bc5f0 | 30 | |
nexpaq | 0:6c56fb4bc5f0 | 31 | #endif |
nexpaq | 0:6c56fb4bc5f0 | 32 | |
nexpaq | 0:6c56fb4bc5f0 | 33 | #endif |