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