Lab Checkoff
Dependencies: SDFileSystem TextLCD mbed-rtos mbed wave_player FATFileSystem
SDFileSystem/FATFileSystem/ChaN/integer.h@0:67dbd54e60d4, 2013-11-13 (annotated)
- Committer:
- doubster
- Date:
- Wed Nov 13 20:00:28 2013 +0000
- Revision:
- 0:67dbd54e60d4
Lab Checkoff
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
doubster | 0:67dbd54e60d4 | 1 | /*-------------------------------------------*/ |
doubster | 0:67dbd54e60d4 | 2 | /* Integer type definitions for FatFs module */ |
doubster | 0:67dbd54e60d4 | 3 | /*-------------------------------------------*/ |
doubster | 0:67dbd54e60d4 | 4 | |
doubster | 0:67dbd54e60d4 | 5 | #ifndef _INTEGER |
doubster | 0:67dbd54e60d4 | 6 | #define _INTEGER |
doubster | 0:67dbd54e60d4 | 7 | |
doubster | 0:67dbd54e60d4 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
doubster | 0:67dbd54e60d4 | 9 | |
doubster | 0:67dbd54e60d4 | 10 | #include <windows.h> |
doubster | 0:67dbd54e60d4 | 11 | #include <tchar.h> |
doubster | 0:67dbd54e60d4 | 12 | |
doubster | 0:67dbd54e60d4 | 13 | #else /* Embedded platform */ |
doubster | 0:67dbd54e60d4 | 14 | |
doubster | 0:67dbd54e60d4 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
doubster | 0:67dbd54e60d4 | 16 | typedef int INT; |
doubster | 0:67dbd54e60d4 | 17 | typedef unsigned int UINT; |
doubster | 0:67dbd54e60d4 | 18 | |
doubster | 0:67dbd54e60d4 | 19 | /* These types must be 8-bit integer */ |
doubster | 0:67dbd54e60d4 | 20 | typedef char CHAR; |
doubster | 0:67dbd54e60d4 | 21 | typedef unsigned char UCHAR; |
doubster | 0:67dbd54e60d4 | 22 | typedef unsigned char BYTE; |
doubster | 0:67dbd54e60d4 | 23 | |
doubster | 0:67dbd54e60d4 | 24 | /* These types must be 16-bit integer */ |
doubster | 0:67dbd54e60d4 | 25 | typedef short SHORT; |
doubster | 0:67dbd54e60d4 | 26 | typedef unsigned short USHORT; |
doubster | 0:67dbd54e60d4 | 27 | typedef unsigned short WORD; |
doubster | 0:67dbd54e60d4 | 28 | typedef unsigned short WCHAR; |
doubster | 0:67dbd54e60d4 | 29 | |
doubster | 0:67dbd54e60d4 | 30 | /* These types must be 32-bit integer */ |
doubster | 0:67dbd54e60d4 | 31 | typedef long LONG; |
doubster | 0:67dbd54e60d4 | 32 | typedef unsigned long ULONG; |
doubster | 0:67dbd54e60d4 | 33 | typedef unsigned long DWORD; |
doubster | 0:67dbd54e60d4 | 34 | |
doubster | 0:67dbd54e60d4 | 35 | #endif |
doubster | 0:67dbd54e60d4 | 36 | |
doubster | 0:67dbd54e60d4 | 37 | #endif |
doubster | 0:67dbd54e60d4 | 38 |