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
usbhost_cpu.h
00001 /* 00002 ************************************************************************************************************** 00003 * NXP USB Host Stack 00004 * 00005 * (c) Copyright 2008, NXP SemiConductors 00006 * (c) Copyright 2008, OnChip Technologies LLC 00007 * All Rights Reserved 00008 * 00009 * www.nxp.com 00010 * www.onchiptech.com 00011 * 00012 * File : usbhost_cpu.h 00013 * Programmer(s) : Ravikanth.P 00014 * Version : 00015 * 00016 ************************************************************************************************************** 00017 */ 00018 00019 #ifndef USBHOST_CPU_H 00020 #define USBHOST_CPU_H 00021 00022 /* 00023 ************************************************************************************************************** 00024 * TYPE DEFINITIONS OF DATA TYPES 00025 ************************************************************************************************************** 00026 */ 00027 00028 typedef unsigned int USB_INT32U; 00029 typedef signed int USB_INT32S; 00030 typedef unsigned short USB_INT16U; 00031 typedef signed short USB_INT16S; 00032 typedef unsigned char USB_INT08U; 00033 typedef signed char USB_INT08S; 00034 00035 #endif
Generated on Tue Jul 12 2022 19:25:49 by
1.7.2
Eli Hughes