This simple program will test the functionality of the m3pi\'s usb port by reading a file on a usb flash drive (called YourText.txt) and printing it to the m3pi\'s inbuilt LCD display.

Dependencies:   mbed m3pi

Committer:
Nicholas
Date:
Fri Jul 08 08:46:48 2011 +0000
Revision:
0:36cb440cb857
M3pi USB text file read and LCD printf of same text document to LCD

Who changed what in which revision?

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