Dependents: USBMSD_CDC_11U35test
Fork of USBFileSystem by
FATFileSystem/ChaN/integer.h@2:9af05743d551, 2013-10-23 (annotated)
- Committer:
- Sissors
- Date:
- Wed Oct 23 20:32:07 2013 +0000
- Revision:
- 2:9af05743d551
FATFileSystem 'Tiny' option enabled -> Primary to solve a buffering issue when USB writes a file, also reduces RAM consumed
;
; USBDevice back to main branch
;
; USBMode 1 is default now
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sissors | 2:9af05743d551 | 1 | /*-------------------------------------------*/ |
Sissors | 2:9af05743d551 | 2 | /* Integer type definitions for FatFs module */ |
Sissors | 2:9af05743d551 | 3 | /*-------------------------------------------*/ |
Sissors | 2:9af05743d551 | 4 | |
Sissors | 2:9af05743d551 | 5 | #ifndef _INTEGER |
Sissors | 2:9af05743d551 | 6 | #define _INTEGER |
Sissors | 2:9af05743d551 | 7 | |
Sissors | 2:9af05743d551 | 8 | #ifdef _WIN32 /* FatFs development platform */ |
Sissors | 2:9af05743d551 | 9 | |
Sissors | 2:9af05743d551 | 10 | #include <windows.h> |
Sissors | 2:9af05743d551 | 11 | #include <tchar.h> |
Sissors | 2:9af05743d551 | 12 | |
Sissors | 2:9af05743d551 | 13 | #else /* Embedded platform */ |
Sissors | 2:9af05743d551 | 14 | |
Sissors | 2:9af05743d551 | 15 | /* These types must be 16-bit, 32-bit or larger integer */ |
Sissors | 2:9af05743d551 | 16 | typedef int INT; |
Sissors | 2:9af05743d551 | 17 | typedef unsigned int UINT; |
Sissors | 2:9af05743d551 | 18 | |
Sissors | 2:9af05743d551 | 19 | /* These types must be 8-bit integer */ |
Sissors | 2:9af05743d551 | 20 | typedef char CHAR; |
Sissors | 2:9af05743d551 | 21 | typedef unsigned char UCHAR; |
Sissors | 2:9af05743d551 | 22 | typedef unsigned char BYTE; |
Sissors | 2:9af05743d551 | 23 | |
Sissors | 2:9af05743d551 | 24 | /* These types must be 16-bit integer */ |
Sissors | 2:9af05743d551 | 25 | typedef short SHORT; |
Sissors | 2:9af05743d551 | 26 | typedef unsigned short USHORT; |
Sissors | 2:9af05743d551 | 27 | typedef unsigned short WORD; |
Sissors | 2:9af05743d551 | 28 | typedef unsigned short WCHAR; |
Sissors | 2:9af05743d551 | 29 | |
Sissors | 2:9af05743d551 | 30 | /* These types must be 32-bit integer */ |
Sissors | 2:9af05743d551 | 31 | typedef long LONG; |
Sissors | 2:9af05743d551 | 32 | typedef unsigned long ULONG; |
Sissors | 2:9af05743d551 | 33 | typedef unsigned long DWORD; |
Sissors | 2:9af05743d551 | 34 | |
Sissors | 2:9af05743d551 | 35 | #endif |
Sissors | 2:9af05743d551 | 36 | |
Sissors | 2:9af05743d551 | 37 | #endif |