USBMSD SD card Hello World for Mbed platforms
Dependencies: mbed USBMSD_SD USBDevice
Diff: ChaNFSSD/SDFileSystem.h
- Revision:
- 13:32b8a767cf0e
- Parent:
- 9:9c343b9ee6d8
- Child:
- 14:757226626acb
--- a/ChaNFSSD/SDFileSystem.h Wed Nov 30 17:50:35 2011 +0000 +++ b/ChaNFSSD/SDFileSystem.h Mon Dec 05 14:34:29 2011 +0000 @@ -59,6 +59,7 @@ virtual int disk_status(); virtual int disk_sync(); virtual int disk_sectors(); + virtual int disk_size(); protected: @@ -75,6 +76,8 @@ int _sd_sectors(); int _sectors; + int capacity; + SPI _spi; DigitalOut _cs; };