Atsushi Hattori
/
20210627_Logger
hattori&ide
ChaNFSUSB/ChaNFS/CHAN_FS/integer.h@0:f77369cabd75, 18 months ago (annotated)
- Committer:
- hattori_atsushi
- Date:
- Sun Dec 18 08:16:01 2022 +0000
- Revision:
- 0:f77369cabd75
hattori
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hattori_atsushi | 0:f77369cabd75 | 1 | /*-------------------------------------------*/ |
hattori_atsushi | 0:f77369cabd75 | 2 | /* Integer type definitions for FatFs module */ |
hattori_atsushi | 0:f77369cabd75 | 3 | /*-------------------------------------------*/ |
hattori_atsushi | 0:f77369cabd75 | 4 | |
hattori_atsushi | 0:f77369cabd75 | 5 | #ifndef _INTEGER |
hattori_atsushi | 0:f77369cabd75 | 6 | #define _INTEGER |
hattori_atsushi | 0:f77369cabd75 | 7 | |
hattori_atsushi | 0:f77369cabd75 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
hattori_atsushi | 0:f77369cabd75 | 9 | |
hattori_atsushi | 0:f77369cabd75 | 10 | #include <windows.h> |
hattori_atsushi | 0:f77369cabd75 | 11 | #include <tchar.h> |
hattori_atsushi | 0:f77369cabd75 | 12 | |
hattori_atsushi | 0:f77369cabd75 | 13 | #else /* Embedded platform */ |
hattori_atsushi | 0:f77369cabd75 | 14 | |
hattori_atsushi | 0:f77369cabd75 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
hattori_atsushi | 0:f77369cabd75 | 16 | typedef int INT; |
hattori_atsushi | 0:f77369cabd75 | 17 | typedef unsigned int UINT; |
hattori_atsushi | 0:f77369cabd75 | 18 | |
hattori_atsushi | 0:f77369cabd75 | 19 | /* These types must be 8-bit integer */ |
hattori_atsushi | 0:f77369cabd75 | 20 | typedef char CHAR; |
hattori_atsushi | 0:f77369cabd75 | 21 | typedef unsigned char UCHAR; |
hattori_atsushi | 0:f77369cabd75 | 22 | typedef unsigned char BYTE; |
hattori_atsushi | 0:f77369cabd75 | 23 | |
hattori_atsushi | 0:f77369cabd75 | 24 | /* These types must be 16-bit integer */ |
hattori_atsushi | 0:f77369cabd75 | 25 | typedef short SHORT; |
hattori_atsushi | 0:f77369cabd75 | 26 | typedef unsigned short USHORT; |
hattori_atsushi | 0:f77369cabd75 | 27 | typedef unsigned short WORD; |
hattori_atsushi | 0:f77369cabd75 | 28 | typedef unsigned short WCHAR; |
hattori_atsushi | 0:f77369cabd75 | 29 | |
hattori_atsushi | 0:f77369cabd75 | 30 | /* These types must be 32-bit integer */ |
hattori_atsushi | 0:f77369cabd75 | 31 | typedef long LONG; |
hattori_atsushi | 0:f77369cabd75 | 32 | typedef unsigned long ULONG; |
hattori_atsushi | 0:f77369cabd75 | 33 | typedef unsigned long DWORD; |
hattori_atsushi | 0:f77369cabd75 | 34 | |
hattori_atsushi | 0:f77369cabd75 | 35 | #endif |
hattori_atsushi | 0:f77369cabd75 | 36 | |
hattori_atsushi | 0:f77369cabd75 | 37 | #endif |