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