Added TARGET_DISCO_F469NI in USBHOST\USBHost\TARGET_STM\USBHALHost_STM_TARGET.h
Dependents: DISCO-F469NI_USB_Disk STM32F4xx_USB_Memory
Fork of USBHOST by
Diff: USBHostMSD/USBHostMSD.h
- Revision:
- 4:fb979eb32081
- Parent:
- 1:ab240722d7ef
--- a/USBHostMSD/USBHostMSD.h Wed Feb 15 10:49:44 2017 +0100 +++ b/USBHostMSD/USBHostMSD.h Thu Feb 16 17:14:33 2017 +0000 @@ -59,10 +59,10 @@ // From FATFileSystem virtual int disk_initialize(); virtual int disk_status() {return 0;}; - 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_read(uint8_t* buffer, uint64_t sector, uint32_t count); + virtual int disk_write(const uint8_t* buffer, uint64_t sector, uint32_t count); virtual int disk_sync() {return 0;}; - virtual uint32_t disk_sectors(); + virtual uint64_t disk_sectors(); private: USBHost * host; @@ -103,8 +103,8 @@ int checkResult(uint8_t res, USBEndpoint * ep); int getMaxLun(); - int blockSize; - uint32_t blockCount; + int64_t blockSize; + uint64_t blockCount; int msd_intf; bool msd_device_found;