PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
libpff/integer.h@71:531419862202, 2019-12-25 (annotated)
- Committer:
- Pokitto
- Date:
- Wed Dec 25 23:59:52 2019 +0000
- Revision:
- 71:531419862202
- Parent:
- 52:c04087025cab
Changed Mode2 C++ refresh code (graphical errors)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pokitto | 52:c04087025cab | 1 | /*-------------------------------------------*/ |
Pokitto | 52:c04087025cab | 2 | /* Integer type definitions for FatFs module */ |
Pokitto | 52:c04087025cab | 3 | /*-------------------------------------------*/ |
Pokitto | 52:c04087025cab | 4 | |
Pokitto | 52:c04087025cab | 5 | #ifndef _INTEGER |
Pokitto | 52:c04087025cab | 6 | |
Pokitto | 52:c04087025cab | 7 | namespace PFFS { |
Pokitto | 52:c04087025cab | 8 | |
Pokitto | 52:c04087025cab | 9 | /* These types must be 16-bit, 32-bit or larger integer */ |
Pokitto | 52:c04087025cab | 10 | typedef int INT; |
Pokitto | 52:c04087025cab | 11 | typedef unsigned int UINT; |
Pokitto | 52:c04087025cab | 12 | |
Pokitto | 52:c04087025cab | 13 | /* These types must be 8-bit integer */ |
Pokitto | 52:c04087025cab | 14 | typedef signed char CHAR; |
Pokitto | 52:c04087025cab | 15 | typedef unsigned char UCHAR; |
Pokitto | 52:c04087025cab | 16 | typedef unsigned char BYTE; |
Pokitto | 52:c04087025cab | 17 | |
Pokitto | 52:c04087025cab | 18 | /* These types must be 16-bit integer */ |
Pokitto | 52:c04087025cab | 19 | typedef short SHORT; |
Pokitto | 52:c04087025cab | 20 | typedef unsigned short USHORT; |
Pokitto | 52:c04087025cab | 21 | typedef unsigned short WORD; |
Pokitto | 52:c04087025cab | 22 | typedef unsigned short WCHAR; |
Pokitto | 52:c04087025cab | 23 | |
Pokitto | 52:c04087025cab | 24 | /* These types must be 32-bit integer */ |
Pokitto | 52:c04087025cab | 25 | typedef long LONG; |
Pokitto | 52:c04087025cab | 26 | typedef unsigned long ULONG; |
Pokitto | 52:c04087025cab | 27 | typedef unsigned long DWORD; |
Pokitto | 52:c04087025cab | 28 | |
Pokitto | 52:c04087025cab | 29 | /* Boolean type */ |
Pokitto | 52:c04087025cab | 30 | // typedef enum { FALSE = 0, TRUE } BOOL; // for soe reason does not work, but otoh isnt used anywhere |
Pokitto | 52:c04087025cab | 31 | |
Pokitto | 52:c04087025cab | 32 | } // namespace PFFS |
Pokitto | 52:c04087025cab | 33 | |
Pokitto | 52:c04087025cab | 34 | #define _INTEGER |
Pokitto | 52:c04087025cab | 35 | #endif |
Pokitto | 52:c04087025cab | 36 | |
Pokitto | 52:c04087025cab | 37 |