publication inutile mais obligée
FATFileSystem/ChaN/integer.h@0:8b2a15992487, 2020-01-28 (annotated)
- Committer:
- adrevong
- Date:
- Tue Jan 28 11:14:21 2020 +0000
- Revision:
- 0:8b2a15992487
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adrevong | 0:8b2a15992487 | 1 | /*-------------------------------------------*/ |
adrevong | 0:8b2a15992487 | 2 | /* Integer type definitions for FatFs module */ |
adrevong | 0:8b2a15992487 | 3 | /*-------------------------------------------*/ |
adrevong | 0:8b2a15992487 | 4 | |
adrevong | 0:8b2a15992487 | 5 | #ifndef _FF_INTEGER |
adrevong | 0:8b2a15992487 | 6 | #define _FF_INTEGER |
adrevong | 0:8b2a15992487 | 7 | |
adrevong | 0:8b2a15992487 | 8 | #ifdef _WIN32 /* Development platform */ |
adrevong | 0:8b2a15992487 | 9 | |
adrevong | 0:8b2a15992487 | 10 | #include <windows.h> |
adrevong | 0:8b2a15992487 | 11 | #include <tchar.h> |
adrevong | 0:8b2a15992487 | 12 | |
adrevong | 0:8b2a15992487 | 13 | #else /* Embedded platform */ |
adrevong | 0:8b2a15992487 | 14 | |
adrevong | 0:8b2a15992487 | 15 | /* This type MUST be 8-bit */ |
adrevong | 0:8b2a15992487 | 16 | typedef unsigned char BYTE; |
adrevong | 0:8b2a15992487 | 17 | |
adrevong | 0:8b2a15992487 | 18 | /* These types MUST be 16-bit */ |
adrevong | 0:8b2a15992487 | 19 | typedef short SHORT; |
adrevong | 0:8b2a15992487 | 20 | typedef unsigned short WORD; |
adrevong | 0:8b2a15992487 | 21 | typedef unsigned short WCHAR; |
adrevong | 0:8b2a15992487 | 22 | |
adrevong | 0:8b2a15992487 | 23 | /* These types MUST be 16-bit or 32-bit */ |
adrevong | 0:8b2a15992487 | 24 | typedef int INT; |
adrevong | 0:8b2a15992487 | 25 | typedef unsigned int UINT; |
adrevong | 0:8b2a15992487 | 26 | |
adrevong | 0:8b2a15992487 | 27 | /* These types MUST be 32-bit */ |
adrevong | 0:8b2a15992487 | 28 | typedef long LONG; |
adrevong | 0:8b2a15992487 | 29 | typedef unsigned long DWORD; |
adrevong | 0:8b2a15992487 | 30 | |
adrevong | 0:8b2a15992487 | 31 | #endif |
adrevong | 0:8b2a15992487 | 32 | |
adrevong | 0:8b2a15992487 | 33 | #endif |