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
USBHostLite/usbhost_inc.h@0:2dbbafe1b1fb, 2011-01-23 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
emh203 | 0:2dbbafe1b1fb | 1 | /* |
emh203 | 0:2dbbafe1b1fb | 2 | ************************************************************************************************************** |
emh203 | 0:2dbbafe1b1fb | 3 | * NXP USB Host Stack |
emh203 | 0:2dbbafe1b1fb | 4 | * |
emh203 | 0:2dbbafe1b1fb | 5 | * (c) Copyright 2008, NXP SemiConductors |
emh203 | 0:2dbbafe1b1fb | 6 | * (c) Copyright 2008, OnChip Technologies LLC |
emh203 | 0:2dbbafe1b1fb | 7 | * All Rights Reserved |
emh203 | 0:2dbbafe1b1fb | 8 | * |
emh203 | 0:2dbbafe1b1fb | 9 | * www.nxp.com |
emh203 | 0:2dbbafe1b1fb | 10 | * www.onchiptech.com |
emh203 | 0:2dbbafe1b1fb | 11 | * |
emh203 | 0:2dbbafe1b1fb | 12 | * File : usbhost_inc.h |
emh203 | 0:2dbbafe1b1fb | 13 | * Programmer(s) : Ravikanth.P |
emh203 | 0:2dbbafe1b1fb | 14 | * Version : |
emh203 | 0:2dbbafe1b1fb | 15 | * |
emh203 | 0:2dbbafe1b1fb | 16 | ************************************************************************************************************** |
emh203 | 0:2dbbafe1b1fb | 17 | */ |
emh203 | 0:2dbbafe1b1fb | 18 | |
emh203 | 0:2dbbafe1b1fb | 19 | #ifndef USBHOST_INC_H |
emh203 | 0:2dbbafe1b1fb | 20 | #define USBHOST_INC_H |
emh203 | 0:2dbbafe1b1fb | 21 | |
emh203 | 0:2dbbafe1b1fb | 22 | /* |
emh203 | 0:2dbbafe1b1fb | 23 | ************************************************************************************************************** |
emh203 | 0:2dbbafe1b1fb | 24 | * INCLUDE HEADER FILES |
emh203 | 0:2dbbafe1b1fb | 25 | ************************************************************************************************************** |
emh203 | 0:2dbbafe1b1fb | 26 | */ |
emh203 | 0:2dbbafe1b1fb | 27 | |
emh203 | 0:2dbbafe1b1fb | 28 | #include "usbhost_cpu.h" |
emh203 | 0:2dbbafe1b1fb | 29 | #include "usbhost_err.h" |
emh203 | 0:2dbbafe1b1fb | 30 | #include "usbhost_lpc17xx.h" |
emh203 | 0:2dbbafe1b1fb | 31 | #include "usbhost_ms.h" |
emh203 | 0:2dbbafe1b1fb | 32 | #include "mbed.h" |
emh203 | 0:2dbbafe1b1fb | 33 | |
emh203 | 0:2dbbafe1b1fb | 34 | |
emh203 | 0:2dbbafe1b1fb | 35 | #ifdef TARGET_LPC2368 |
emh203 | 0:2dbbafe1b1fb | 36 | #error "There is no USB host on the LPC2368!" |
emh203 | 0:2dbbafe1b1fb | 37 | #endif |
emh203 | 0:2dbbafe1b1fb | 38 | |
emh203 | 0:2dbbafe1b1fb | 39 | #endif |