Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FATFileSystem mbed-rtos
Fork of USBHost by
Diff: USBHostMSD/USBHostMSD.h
- Revision:
- 33:6c4cab4d356f
- Parent:
- 26:607951c26872
diff -r 140defdf151c -r 6c4cab4d356f USBHostMSD/USBHostMSD.h
--- a/USBHostMSD/USBHostMSD.h Fri Oct 16 07:46:31 2015 +0100
+++ b/USBHostMSD/USBHostMSD.h Fri Dec 11 16:16:06 2015 +0000
@@ -59,10 +59,10 @@
// From FATFileSystem
virtual int disk_initialize();
virtual int disk_status() {return 0;};
- virtual int disk_read(uint8_t* buffer, uint64_t sector, uint8_t count);
- virtual int disk_write(const uint8_t* buffer, uint64_t sector, uint8_t count);
+ virtual int disk_read(uint8_t* buffer, uint32_t sector, uint32_t count);
+ virtual int disk_write(const uint8_t* buffer, uint32_t sector, uint32_t count);
virtual int disk_sync() {return 0;};
- virtual uint64_t disk_sectors();
+ virtual uint32_t disk_sectors();
private:
USBHost * host;
@@ -104,7 +104,7 @@
int getMaxLun();
int blockSize;
- uint64_t blockCount;
+ uint32_t blockCount;
int msd_intf;
bool msd_device_found;
