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