mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10654 from desowin/usbhost-msd
USBHostMSD: Implement BlockDevice get_type()pull/10769/head
commit
04d0b0d1c8
|
|
@ -403,4 +403,9 @@ bd_size_t USBHostMSD::size() const
|
||||||
USB_DBG("FILESYSTEM: size ");
|
USB_DBG("FILESYSTEM: size ");
|
||||||
return (disk_init ? (bd_size_t)blockSize : 0);
|
return (disk_init ? (bd_size_t)blockSize : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *USBHostMSD::get_type() const
|
||||||
|
{
|
||||||
|
return "USBMSD";
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ public:
|
||||||
virtual bd_size_t get_program_size() const;
|
virtual bd_size_t get_program_size() const;
|
||||||
virtual bd_size_t get_erase_size() const;
|
virtual bd_size_t get_erase_size() const;
|
||||||
virtual bd_size_t size() const;
|
virtual bd_size_t size() const;
|
||||||
|
virtual const char *get_type() const;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue