USBMSD SD card Hello World for Mbed platforms
Dependencies: mbed USBMSD_SD USBDevice
ChaNFS/CHAN_FS/integer.h@7:6494da2a5c60, 2011-11-14 (annotated)
- Committer:
- samux
- Date:
- Mon Nov 14 12:08:32 2011 +0000
- Revision:
- 7:6494da2a5c60
will try to use ChaNFSSD
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux |
7:6494da2a5c60 | 1 | /*-------------------------------------------*/ |
samux |
7:6494da2a5c60 | 2 | /* Integer type definitions for FatFs module */ |
samux |
7:6494da2a5c60 | 3 | /*-------------------------------------------*/ |
samux |
7:6494da2a5c60 | 4 | |
samux |
7:6494da2a5c60 | 5 | #ifndef _INTEGER |
samux |
7:6494da2a5c60 | 6 | #define _INTEGER |
samux |
7:6494da2a5c60 | 7 | |
samux |
7:6494da2a5c60 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
samux |
7:6494da2a5c60 | 9 | |
samux |
7:6494da2a5c60 | 10 | #include <windows.h> |
samux |
7:6494da2a5c60 | 11 | #include <tchar.h> |
samux |
7:6494da2a5c60 | 12 | |
samux |
7:6494da2a5c60 | 13 | #else /* Embedded platform */ |
samux |
7:6494da2a5c60 | 14 | |
samux |
7:6494da2a5c60 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
samux |
7:6494da2a5c60 | 16 | typedef int INT; |
samux |
7:6494da2a5c60 | 17 | typedef unsigned int UINT; |
samux |
7:6494da2a5c60 | 18 | |
samux |
7:6494da2a5c60 | 19 | /* These types must be 8-bit integer */ |
samux |
7:6494da2a5c60 | 20 | typedef char CHAR; |
samux |
7:6494da2a5c60 | 21 | typedef unsigned char UCHAR; |
samux |
7:6494da2a5c60 | 22 | typedef unsigned char BYTE; |
samux |
7:6494da2a5c60 | 23 | |
samux |
7:6494da2a5c60 | 24 | /* These types must be 16-bit integer */ |
samux |
7:6494da2a5c60 | 25 | typedef short SHORT; |
samux |
7:6494da2a5c60 | 26 | typedef unsigned short USHORT; |
samux |
7:6494da2a5c60 | 27 | typedef unsigned short WORD; |
samux |
7:6494da2a5c60 | 28 | typedef unsigned short WCHAR; |
samux |
7:6494da2a5c60 | 29 | |
samux |
7:6494da2a5c60 | 30 | /* These types must be 32-bit integer */ |
samux |
7:6494da2a5c60 | 31 | typedef long LONG; |
samux |
7:6494da2a5c60 | 32 | typedef unsigned long ULONG; |
samux |
7:6494da2a5c60 | 33 | typedef unsigned long DWORD; |
samux |
7:6494da2a5c60 | 34 | |
samux |
7:6494da2a5c60 | 35 | #endif |
samux |
7:6494da2a5c60 | 36 | |
samux |
7:6494da2a5c60 | 37 | #endif |