mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13960 from harmut01/2260_erase_size_const
Add const keyword to get_erase_size declarationpull/13973/head
commit
aea691a67a
|
|
@ -223,7 +223,7 @@ public:
|
|||
* @return Size of minimal erase sector size, in given address region, in bytes
|
||||
* @note Must be a multiple of the program size
|
||||
*/
|
||||
virtual mbed::bd_size_t get_erase_size(mbed::bd_addr_t addr);
|
||||
virtual mbed::bd_size_t get_erase_size(mbed::bd_addr_t addr) const;
|
||||
|
||||
/** Get the value of storage byte after it was erased
|
||||
*
|
||||
|
|
|
|||
|
|
@ -504,7 +504,7 @@ const char *QSPIFBlockDevice::get_type() const
|
|||
}
|
||||
|
||||
// Find minimal erase size supported by the region to which the address belongs to
|
||||
bd_size_t QSPIFBlockDevice::get_erase_size(bd_addr_t addr)
|
||||
bd_size_t QSPIFBlockDevice::get_erase_size(bd_addr_t addr) const
|
||||
{
|
||||
// If the legacy erase instruction is in use, the erase size is uniformly 4k
|
||||
if (_sfdp_info.bptbl.legacy_erase_instruction != QSPI_NO_INST) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue