mirror of https://github.com/ARMmbed/mbed-os.git
USBHostMSD: Implement BlockDevice get_type()
This makes it possible to create instances of USBHostMSD class.pull/10654/head
parent
c4cc9c4f1b
commit
3116f329d7
|
@ -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