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