EA BaseBoard, playing wav, PC see\'s SD-card through USB port.

Dependencies:   mbed

Committer:
Lerche
Date:
Tue Nov 22 05:45:58 2011 +0000
Revision:
0:fef366d2ed20
Thanks to those who provided EA_WavPlayer and USB_MSC

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Lerche 0:fef366d2ed20 1 /*
Lerche 0:fef366d2ed20 2 LPCUSB, an USB device driver for LPC microcontrollers
Lerche 0:fef366d2ed20 3 Copyright (C) 2006 Bertrik Sikken (bertrik@sikken.nl)
Lerche 0:fef366d2ed20 4
Lerche 0:fef366d2ed20 5 Redistribution and use in source and binary forms, with or without
Lerche 0:fef366d2ed20 6 modification, are permitted provided that the following conditions are met:
Lerche 0:fef366d2ed20 7
Lerche 0:fef366d2ed20 8 1. Redistributions of source code must retain the above copyright
Lerche 0:fef366d2ed20 9 notice, this list of conditions and the following disclaimer.
Lerche 0:fef366d2ed20 10 2. Redistributions in binary form must reproduce the above copyright
Lerche 0:fef366d2ed20 11 notice, this list of conditions and the following disclaimer in the
Lerche 0:fef366d2ed20 12 documentation and/or other materials provided with the distribution.
Lerche 0:fef366d2ed20 13 3. The name of the author may not be used to endorse or promote products
Lerche 0:fef366d2ed20 14 derived from this software without specific prior written permission.
Lerche 0:fef366d2ed20 15
Lerche 0:fef366d2ed20 16 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Lerche 0:fef366d2ed20 17 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Lerche 0:fef366d2ed20 18 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
Lerche 0:fef366d2ed20 19 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
Lerche 0:fef366d2ed20 20 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
Lerche 0:fef366d2ed20 21 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Lerche 0:fef366d2ed20 22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Lerche 0:fef366d2ed20 23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Lerche 0:fef366d2ed20 24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
Lerche 0:fef366d2ed20 25 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lerche 0:fef366d2ed20 26 */
Lerche 0:fef366d2ed20 27
Lerche 0:fef366d2ed20 28 #include "mbed.h"
Lerche 0:fef366d2ed20 29
Lerche 0:fef366d2ed20 30
Lerche 0:fef366d2ed20 31 int BlockDevInit(void);
Lerche 0:fef366d2ed20 32
Lerche 0:fef366d2ed20 33 int BlockDevWrite(uint32_t dwAddress, uint8_t* pbBuf);
Lerche 0:fef366d2ed20 34 int BlockDevRead(uint32_t dwAddress, uint8_t* pbBuf);
Lerche 0:fef366d2ed20 35
Lerche 0:fef366d2ed20 36 //int BlockDevGetSize(U32 *pdwDriveSize);
Lerche 0:fef366d2ed20 37 uint32_t BlockDevGetSize(void);
Lerche 0:fef366d2ed20 38 int BlockDevGetStatus(void);