USBMSD SD card Hello World for Mbed platforms

Dependencies:   mbed USBMSD_SD USBDevice

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Tue Dec 06 14:07:51 2011 +0000
Parent:
14:757226626acb
Child:
16:c753717bfd4d
Commit message:
forget a pure virtual function: disk_read

Changed in this revision

USBMSD/USBMSD.h Show annotated file Show diff for this revision Revisions of this file
--- a/USBMSD/USBMSD.h	Tue Dec 06 12:07:12 2011 +0000
+++ b/USBMSD/USBMSD.h	Tue Dec 06 14:07:51 2011 +0000
@@ -17,6 +17,7 @@
 */
 
 
+
 /* Introduction
  * ------------
  * The USBMSD implements the MSD protocol. It permits to access a memory chip (flash, sdcard,...)
@@ -77,9 +78,7 @@
     * @param block block number
     * @returns 0 if successful
     */
-    virtual int disk_read(char * data, int block) {
-        return 1;
-    };
+    virtual int disk_read(char * data, int block) = 0;
 
     /*
     * write a block on a storage chip