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_cpu.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_cpu.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_CPU_H |
emh203 | 0:2dbbafe1b1fb | 20 | #define USBHOST_CPU_H |
emh203 | 0:2dbbafe1b1fb | 21 | |
emh203 | 0:2dbbafe1b1fb | 22 | /* |
emh203 | 0:2dbbafe1b1fb | 23 | ************************************************************************************************************** |
emh203 | 0:2dbbafe1b1fb | 24 | * TYPE DEFINITIONS OF DATA TYPES |
emh203 | 0:2dbbafe1b1fb | 25 | ************************************************************************************************************** |
emh203 | 0:2dbbafe1b1fb | 26 | */ |
emh203 | 0:2dbbafe1b1fb | 27 | |
emh203 | 0:2dbbafe1b1fb | 28 | typedef unsigned int USB_INT32U; |
emh203 | 0:2dbbafe1b1fb | 29 | typedef signed int USB_INT32S; |
emh203 | 0:2dbbafe1b1fb | 30 | typedef unsigned short USB_INT16U; |
emh203 | 0:2dbbafe1b1fb | 31 | typedef signed short USB_INT16S; |
emh203 | 0:2dbbafe1b1fb | 32 | typedef unsigned char USB_INT08U; |
emh203 | 0:2dbbafe1b1fb | 33 | typedef signed char USB_INT08S; |
emh203 | 0:2dbbafe1b1fb | 34 | |
emh203 | 0:2dbbafe1b1fb | 35 | #endif |