storage/flash_map: Added function for get erased byte value
Added flash_area_erased_val() function for get value of erased byte of memory which is under flash area. This function already exist in MCUBoot and zephyr dfu subsystem which makes simultaneous usage of both impossible. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
parent
cc29dbde4f
commit
053857e09a
4 changed files with 39 additions and 9 deletions
|
@ -205,15 +205,6 @@ static int boot_flag_decode(uint8_t flag)
|
|||
return BOOT_FLAG_SET;
|
||||
}
|
||||
|
||||
/* TODO: this function should be moved to flash_area api in future */
|
||||
uint8_t flash_area_erased_val(const struct flash_area *fa)
|
||||
{
|
||||
#define ERASED_VAL 0xff
|
||||
|
||||
(void)fa;
|
||||
return ERASED_VAL;
|
||||
}
|
||||
|
||||
/* TODO: this function should be moved to flash_area api in future */
|
||||
int flash_area_read_is_empty(const struct flash_area *fa, uint32_t off,
|
||||
void *dst, uint32_t len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue