forked for unsupported target
Dependents: stm32-disco-example DISCO-F469NI_BD_SD_Card_Control
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();