dfu: boot: Add implementation for multi-image swap type check
Adds multi-image implementations for checking swap type based on image index. Signed-off-by: Sigvart Hovland <sigvart.hovland@nordicsemi.no>
This commit is contained in:
parent
9341a3d50c
commit
bcbc53015d
2 changed files with 16 additions and 0 deletions
|
@ -144,6 +144,11 @@ int boot_read_bank_header(uint8_t area_id,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int mcuboot_swap_type_multi(int image_index)
|
||||
{
|
||||
return boot_swap_type_multi(image_index);
|
||||
}
|
||||
|
||||
int mcuboot_swap_type(void)
|
||||
{
|
||||
#ifdef FLASH_AREA_IMAGE_SECONDARY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue