First working version of a FATFileSystem compatible Chan FAT v0.8 implementation. This is intended to use with long file names and RTOS support. For now long file names work but RTOS support is still untested.

Dependents:   USB_MSC USB_CDC_MSD_Hello TFTPServerTest DMXStation ... more

Committer:
NeoBelerophon
Date:
Fri Feb 04 21:14:33 2011 +0000
Revision:
2:629e4be333f3
Parent:
0:8ea634413549
getdir() did not work -> remove

Who changed what in which revision?

UserRevisionLine numberNew contents of line
NeoBelerophon 0:8ea634413549 1 /*-------------------------------------------*/
NeoBelerophon 0:8ea634413549 2 /* Integer type definitions for FatFs module */
NeoBelerophon 0:8ea634413549 3 /*-------------------------------------------*/
NeoBelerophon 0:8ea634413549 4
NeoBelerophon 0:8ea634413549 5 #ifndef _INTEGER
NeoBelerophon 0:8ea634413549 6 #define _INTEGER
NeoBelerophon 0:8ea634413549 7
NeoBelerophon 0:8ea634413549 8 #ifdef _WIN32 /* FatFs development platform */
NeoBelerophon 0:8ea634413549 9
NeoBelerophon 0:8ea634413549 10 #include <windows.h>
NeoBelerophon 0:8ea634413549 11 #include <tchar.h>
NeoBelerophon 0:8ea634413549 12
NeoBelerophon 0:8ea634413549 13 #else /* Embedded platform */
NeoBelerophon 0:8ea634413549 14
NeoBelerophon 0:8ea634413549 15 /* These types must be 16-bit, 32-bit or larger integer */
NeoBelerophon 0:8ea634413549 16 typedef int INT;
NeoBelerophon 0:8ea634413549 17 typedef unsigned int UINT;
NeoBelerophon 0:8ea634413549 18
NeoBelerophon 0:8ea634413549 19 /* These types must be 8-bit integer */
NeoBelerophon 0:8ea634413549 20 typedef char CHAR;
NeoBelerophon 0:8ea634413549 21 typedef unsigned char UCHAR;
NeoBelerophon 0:8ea634413549 22 typedef unsigned char BYTE;
NeoBelerophon 0:8ea634413549 23
NeoBelerophon 0:8ea634413549 24 /* These types must be 16-bit integer */
NeoBelerophon 0:8ea634413549 25 typedef short SHORT;
NeoBelerophon 0:8ea634413549 26 typedef unsigned short USHORT;
NeoBelerophon 0:8ea634413549 27 typedef unsigned short WORD;
NeoBelerophon 0:8ea634413549 28 typedef unsigned short WCHAR;
NeoBelerophon 0:8ea634413549 29
NeoBelerophon 0:8ea634413549 30 /* These types must be 32-bit integer */
NeoBelerophon 0:8ea634413549 31 typedef long LONG;
NeoBelerophon 0:8ea634413549 32 typedef unsigned long ULONG;
NeoBelerophon 0:8ea634413549 33 typedef unsigned long DWORD;
NeoBelerophon 0:8ea634413549 34
NeoBelerophon 0:8ea634413549 35 #endif
NeoBelerophon 0:8ea634413549 36
NeoBelerophon 0:8ea634413549 37 #endif