Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
integer.h@0:4db361f2e6d5, 2015-01-04 (annotated)
- Committer:
- willybayot
- Date:
- Sun Jan 04 13:25:59 2015 +0000
- Revision:
- 0:4db361f2e6d5
ADAFRUIT revision
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| willybayot | 0:4db361f2e6d5 | 1 | /*-------------------------------------------*/ |
| willybayot | 0:4db361f2e6d5 | 2 | /* Integer type definitions for FatFs module */ |
| willybayot | 0:4db361f2e6d5 | 3 | /*-------------------------------------------*/ |
| willybayot | 0:4db361f2e6d5 | 4 | |
| willybayot | 0:4db361f2e6d5 | 5 | #ifndef _FF_INTEGER |
| willybayot | 0:4db361f2e6d5 | 6 | #define _FF_INTEGER |
| willybayot | 0:4db361f2e6d5 | 7 | |
| willybayot | 0:4db361f2e6d5 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
| willybayot | 0:4db361f2e6d5 | 9 | |
| willybayot | 0:4db361f2e6d5 | 10 | #include <windows.h> |
| willybayot | 0:4db361f2e6d5 | 11 | #include <tchar.h> |
| willybayot | 0:4db361f2e6d5 | 12 | |
| willybayot | 0:4db361f2e6d5 | 13 | #else /* Embedded platform */ |
| willybayot | 0:4db361f2e6d5 | 14 | |
| willybayot | 0:4db361f2e6d5 | 15 | /* This type MUST be 8 bit */ |
| willybayot | 0:4db361f2e6d5 | 16 | typedef unsigned char BYTE; |
| willybayot | 0:4db361f2e6d5 | 17 | |
| willybayot | 0:4db361f2e6d5 | 18 | /* These types MUST be 16 bit */ |
| willybayot | 0:4db361f2e6d5 | 19 | typedef short SHORT; |
| willybayot | 0:4db361f2e6d5 | 20 | typedef unsigned short WORD; |
| willybayot | 0:4db361f2e6d5 | 21 | typedef unsigned short WCHAR; |
| willybayot | 0:4db361f2e6d5 | 22 | |
| willybayot | 0:4db361f2e6d5 | 23 | /* These types MUST be 16 bit or 32 bit */ |
| willybayot | 0:4db361f2e6d5 | 24 | typedef int INT; |
| willybayot | 0:4db361f2e6d5 | 25 | typedef unsigned int UINT; |
| willybayot | 0:4db361f2e6d5 | 26 | |
| willybayot | 0:4db361f2e6d5 | 27 | /* These types MUST be 32 bit */ |
| willybayot | 0:4db361f2e6d5 | 28 | typedef long LONG; |
| willybayot | 0:4db361f2e6d5 | 29 | typedef unsigned long DWORD; |
| willybayot | 0:4db361f2e6d5 | 30 | |
| willybayot | 0:4db361f2e6d5 | 31 | #endif |
| willybayot | 0:4db361f2e6d5 | 32 | |
| willybayot | 0:4db361f2e6d5 | 33 | #endif |
| willybayot | 0:4db361f2e6d5 | 34 |