mirror of https://github.com/ARMmbed/mbed-os.git
Add flashiap block device comment
parent
7fac0722a4
commit
4d6240d26e
|
|
@ -258,6 +258,7 @@ const char *FlashIAPBlockDevice::get_type() const
|
||||||
|
|
||||||
bool FlashIAPBlockDevice::is_valid_erase(bd_addr_t addr, bd_size_t size) const
|
bool FlashIAPBlockDevice::is_valid_erase(bd_addr_t addr, bd_size_t size) const
|
||||||
{
|
{
|
||||||
|
/* Calculate address alignment for the full flash */
|
||||||
bd_addr_t base_addr = addr + (_base - _flash.get_flash_start());
|
bd_addr_t base_addr = addr + (_base - _flash.get_flash_start());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue