Uses a more recent version of official mbed libraries than that of Neil Thiessen
Dependencies: FATFileSystem
Dependents: ThermalWake STM32F407VET6_SDCard STM32F407VET6_SD_HTTP_Server ZZ_SSL_Main_L476 ... more
Fork of SDFileSystem by
FATFileSystem/ChaN/integer.h@11:67ddc53e3983, 2014-08-14 (annotated)
- Committer:
- neilt6
- Date:
- Thu Aug 14 22:27:07 2014 +0000
- Revision:
- 11:67ddc53e3983
Major performance improvements with custom FATFileSystem
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
neilt6 | 11:67ddc53e3983 | 1 | /*-------------------------------------------*/ |
neilt6 | 11:67ddc53e3983 | 2 | /* Integer type definitions for FatFs module */ |
neilt6 | 11:67ddc53e3983 | 3 | /*-------------------------------------------*/ |
neilt6 | 11:67ddc53e3983 | 4 | |
neilt6 | 11:67ddc53e3983 | 5 | #ifndef _INTEGER |
neilt6 | 11:67ddc53e3983 | 6 | #define _INTEGER |
neilt6 | 11:67ddc53e3983 | 7 | |
neilt6 | 11:67ddc53e3983 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
neilt6 | 11:67ddc53e3983 | 9 | |
neilt6 | 11:67ddc53e3983 | 10 | #include <windows.h> |
neilt6 | 11:67ddc53e3983 | 11 | #include <tchar.h> |
neilt6 | 11:67ddc53e3983 | 12 | |
neilt6 | 11:67ddc53e3983 | 13 | #else /* Embedded platform */ |
neilt6 | 11:67ddc53e3983 | 14 | |
neilt6 | 11:67ddc53e3983 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
neilt6 | 11:67ddc53e3983 | 16 | typedef int INT; |
neilt6 | 11:67ddc53e3983 | 17 | typedef unsigned int UINT; |
neilt6 | 11:67ddc53e3983 | 18 | |
neilt6 | 11:67ddc53e3983 | 19 | /* These types must be 8-bit integer */ |
neilt6 | 11:67ddc53e3983 | 20 | typedef char CHAR; |
neilt6 | 11:67ddc53e3983 | 21 | typedef unsigned char UCHAR; |
neilt6 | 11:67ddc53e3983 | 22 | typedef unsigned char BYTE; |
neilt6 | 11:67ddc53e3983 | 23 | |
neilt6 | 11:67ddc53e3983 | 24 | /* These types must be 16-bit integer */ |
neilt6 | 11:67ddc53e3983 | 25 | typedef short SHORT; |
neilt6 | 11:67ddc53e3983 | 26 | typedef unsigned short USHORT; |
neilt6 | 11:67ddc53e3983 | 27 | typedef unsigned short WORD; |
neilt6 | 11:67ddc53e3983 | 28 | typedef unsigned short WCHAR; |
neilt6 | 11:67ddc53e3983 | 29 | |
neilt6 | 11:67ddc53e3983 | 30 | /* These types must be 32-bit integer */ |
neilt6 | 11:67ddc53e3983 | 31 | typedef long LONG; |
neilt6 | 11:67ddc53e3983 | 32 | typedef unsigned long ULONG; |
neilt6 | 11:67ddc53e3983 | 33 | typedef unsigned long DWORD; |
neilt6 | 11:67ddc53e3983 | 34 | |
neilt6 | 11:67ddc53e3983 | 35 | #endif |
neilt6 | 11:67ddc53e3983 | 36 | |
neilt6 | 11:67ddc53e3983 | 37 | #endif |