This program is an example of of using the MSCUSBHost code with a raw build of ELM Chan Fat Fs. This was done to add both Long File Name Support along with proper time/date stamps (assuming you have a battery hooked up to keep time). This code exposes the Chan API (see main.cpp) and is NOT a c++ class: http://elm-chan.org/fsw/ff/00index_e.html The diskio.c file has the mapping needed to link the filesystem to the MSC stuff

Dependencies:   mbed

Committer:
emh203
Date:
Sun Jan 23 18:35:43 2011 +0000
Revision:
0:2dbbafe1b1fb
1st test version.   Test with raw mbed and Samtec USB-RA type A connector wired directly to pins.

Who changed what in which revision?

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