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;
|
||||
}
|
||||
|
||||
const char *I2CEEBlockDevice::get_type() const
|
||||
{
|
||||
return "I2CEE";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,6 +157,12 @@ public:
|
|||
*/
|
||||
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:
|
||||
I2C * _i2c;
|
||||
uint32_t _i2c_buffer[sizeof(I2C) / sizeof(uint32_t)];
|
||||
|
|
|
|||
Loading…
Reference in New Issue