mirror of https://github.com/ARMmbed/mbed-os.git
add missing get_type() from BlockDevice
parent
383956367d
commit
0eb3475c75
|
|
@ -147,3 +147,8 @@ bd_size_t I2CEEBlockDevice::size() const
|
||||||
{
|
{
|
||||||
return _size;
|
return _size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *I2CEEBlockDevice::get_type() const
|
||||||
|
{
|
||||||
|
return "I2CEE";
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,12 @@ public:
|
||||||
* @return Size of the underlying device in bytes
|
* @return Size of the underlying device in bytes
|
||||||
*/
|
*/
|
||||||
virtual bd_size_t size() const;
|
virtual bd_size_t size() const;
|
||||||
|
|
||||||
|
/** Get the BlockDevice class type.
|
||||||
|
*
|
||||||
|
* @return A string representation of the BlockDevice class type.
|
||||||
|
*/
|
||||||
|
virtual const char *get_type() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
I2C * _i2c;
|
I2C * _i2c;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue