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.
Dependents: DISCO-F469NI_USB_Disk STM32F4xx_USB_Memory
Fork of USBHOST by
Diff: USBHostMSD/USBHostMSD.cpp
- Revision:
- 4:fb979eb32081
- Parent:
- 1:ab240722d7ef
diff -r ab240722d7ef -r fb979eb32081 USBHostMSD/USBHostMSD.cpp
--- a/USBHostMSD/USBHostMSD.cpp Wed Feb 15 10:49:44 2017 +0100
+++ b/USBHostMSD/USBHostMSD.cpp Thu Feb 16 17:14:33 2017 +0000
@@ -323,7 +323,7 @@
return readCapacity();
}
-int USBHostMSD::disk_write(const uint8_t* buffer, uint32_t block_number, uint32_t count) {
+int USBHostMSD::disk_write(const uint8_t* buffer, uint64_t block_number, uint32_t count) {
USB_DBG("FILESYSTEM: write block: %lld, count: %d", block_number, count);
if (!disk_init) {
disk_initialize();
@@ -338,7 +338,7 @@
return 0;
}
-int USBHostMSD::disk_read(uint8_t* buffer, uint32_t block_number, uint32_t count) {
+int USBHostMSD::disk_read(uint8_t* buffer, uint64_t block_number, uint32_t count) {
USB_DBG("FILESYSTEM: read block: %lld, count: %d", block_number, count);
if (!disk_init) {
disk_initialize();
@@ -353,7 +353,7 @@
return 0;
}
-uint32_t USBHostMSD::disk_sectors() {
+uint64_t USBHostMSD::disk_sectors() {
USB_DBG("FILESYSTEM: sectors");
if (!disk_init) {
disk_initialize();
