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.
Fork of PokittoLib by
libpff/integer.h@0:e8b8f36b4505, 2017-09-18 (annotated)
- Committer:
- Pokitto
- Date:
- Mon Sep 18 11:47:51 2017 +0000
- Revision:
- 0:e8b8f36b4505
Initial;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pokitto | 0:e8b8f36b4505 | 1 | /*-------------------------------------------*/ |
Pokitto | 0:e8b8f36b4505 | 2 | /* Integer type definitions for FatFs module */ |
Pokitto | 0:e8b8f36b4505 | 3 | /*-------------------------------------------*/ |
Pokitto | 0:e8b8f36b4505 | 4 | |
Pokitto | 0:e8b8f36b4505 | 5 | #ifndef _INTEGER |
Pokitto | 0:e8b8f36b4505 | 6 | |
Pokitto | 0:e8b8f36b4505 | 7 | /* These types must be 16-bit, 32-bit or larger integer */ |
Pokitto | 0:e8b8f36b4505 | 8 | typedef int INT; |
Pokitto | 0:e8b8f36b4505 | 9 | typedef unsigned int UINT; |
Pokitto | 0:e8b8f36b4505 | 10 | |
Pokitto | 0:e8b8f36b4505 | 11 | /* These types must be 8-bit integer */ |
Pokitto | 0:e8b8f36b4505 | 12 | typedef signed char CHAR; |
Pokitto | 0:e8b8f36b4505 | 13 | typedef unsigned char UCHAR; |
Pokitto | 0:e8b8f36b4505 | 14 | typedef unsigned char BYTE; |
Pokitto | 0:e8b8f36b4505 | 15 | |
Pokitto | 0:e8b8f36b4505 | 16 | /* These types must be 16-bit integer */ |
Pokitto | 0:e8b8f36b4505 | 17 | typedef short SHORT; |
Pokitto | 0:e8b8f36b4505 | 18 | typedef unsigned short USHORT; |
Pokitto | 0:e8b8f36b4505 | 19 | typedef unsigned short WORD; |
Pokitto | 0:e8b8f36b4505 | 20 | typedef unsigned short WCHAR; |
Pokitto | 0:e8b8f36b4505 | 21 | |
Pokitto | 0:e8b8f36b4505 | 22 | /* These types must be 32-bit integer */ |
Pokitto | 0:e8b8f36b4505 | 23 | typedef long LONG; |
Pokitto | 0:e8b8f36b4505 | 24 | typedef unsigned long ULONG; |
Pokitto | 0:e8b8f36b4505 | 25 | typedef unsigned long DWORD; |
Pokitto | 0:e8b8f36b4505 | 26 | |
Pokitto | 0:e8b8f36b4505 | 27 | /* Boolean type */ |
Pokitto | 0:e8b8f36b4505 | 28 | // typedef enum { FALSE = 0, TRUE } BOOL; // for soe reason does not work, but otoh isnt used anywhere |
Pokitto | 0:e8b8f36b4505 | 29 | |
Pokitto | 0:e8b8f36b4505 | 30 | #define _INTEGER |
Pokitto | 0:e8b8f36b4505 | 31 | #endif |
Pokitto | 0:e8b8f36b4505 | 32 |