Example SDFileSystem in which FATDirHandle exposes the file info struct of the current file/directory.
FATFileSystem/ChaN/integer.h@0:687056ba3278, 2013-09-04 (annotated)
- Committer:
- uci1
- Date:
- Wed Sep 04 00:32:19 2013 +0000
- Revision:
- 0:687056ba3278
Example SDFileSystem with FATDirHandle exposing the file info structure
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uci1 | 0:687056ba3278 | 1 | /*-------------------------------------------*/ |
uci1 | 0:687056ba3278 | 2 | /* Integer type definitions for FatFs module */ |
uci1 | 0:687056ba3278 | 3 | /*-------------------------------------------*/ |
uci1 | 0:687056ba3278 | 4 | |
uci1 | 0:687056ba3278 | 5 | #ifndef _INTEGER |
uci1 | 0:687056ba3278 | 6 | #define _INTEGER |
uci1 | 0:687056ba3278 | 7 | |
uci1 | 0:687056ba3278 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
uci1 | 0:687056ba3278 | 9 | |
uci1 | 0:687056ba3278 | 10 | #include <windows.h> |
uci1 | 0:687056ba3278 | 11 | #include <tchar.h> |
uci1 | 0:687056ba3278 | 12 | |
uci1 | 0:687056ba3278 | 13 | #else /* Embedded platform */ |
uci1 | 0:687056ba3278 | 14 | |
uci1 | 0:687056ba3278 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
uci1 | 0:687056ba3278 | 16 | typedef int INT; |
uci1 | 0:687056ba3278 | 17 | typedef unsigned int UINT; |
uci1 | 0:687056ba3278 | 18 | |
uci1 | 0:687056ba3278 | 19 | /* These types must be 8-bit integer */ |
uci1 | 0:687056ba3278 | 20 | typedef char CHAR; |
uci1 | 0:687056ba3278 | 21 | typedef unsigned char UCHAR; |
uci1 | 0:687056ba3278 | 22 | typedef unsigned char BYTE; |
uci1 | 0:687056ba3278 | 23 | |
uci1 | 0:687056ba3278 | 24 | /* These types must be 16-bit integer */ |
uci1 | 0:687056ba3278 | 25 | typedef short SHORT; |
uci1 | 0:687056ba3278 | 26 | typedef unsigned short USHORT; |
uci1 | 0:687056ba3278 | 27 | typedef unsigned short WORD; |
uci1 | 0:687056ba3278 | 28 | typedef unsigned short WCHAR; |
uci1 | 0:687056ba3278 | 29 | |
uci1 | 0:687056ba3278 | 30 | /* These types must be 32-bit integer */ |
uci1 | 0:687056ba3278 | 31 | typedef long LONG; |
uci1 | 0:687056ba3278 | 32 | typedef unsigned long ULONG; |
uci1 | 0:687056ba3278 | 33 | typedef unsigned long DWORD; |
uci1 | 0:687056ba3278 | 34 | |
uci1 | 0:687056ba3278 | 35 | #endif |
uci1 | 0:687056ba3278 | 36 | |
uci1 | 0:687056ba3278 | 37 | #endif |