Fix compilation of cypress code

Signed-off-by: Roman Okhrimenko <roman.okhrimenko@cypress.com>
This commit is contained in:
Roman Okhrimenko 2020-05-29 19:29:11 +03:00 committed by Fabio Utzig
parent 0324f1b023
commit 2dcc96db52
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ int flash_area_erase(const struct flash_area *fa, uint32_t off, uint32_t len)
row_addr = erase_start_addr + row_number * (uint32_t) CY_FLASH_SIZEOF_ROW;
rc = Cy_Flash_EraseRow(row_addr);
}
}
#ifdef CY_BOOT_USE_EXTERNAL_FLASH
else if ((fa->fa_device_id & FLASH_DEVICE_EXTERNAL_FLAG) == FLASH_DEVICE_EXTERNAL_FLAG)
{