Home
last modified time | relevance | path

Searched refs:bank_swap (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.6.0/drivers/flash/
Dflash_stm32l5x.c244 bool bank_swap; in erase_page() local
246 bank_swap = in erase_page()
249 if ((offset < (FLASH_SIZE / 2)) && !bank_swap) { in erase_page()
254 } else if ((offset >= BANK2_OFFSET) && bank_swap) { in erase_page()
259 } else if ((offset < (FLASH_SIZE / 2)) && bank_swap) { in erase_page()
264 } else if ((offset >= BANK2_OFFSET) && !bank_swap) { in erase_page()
Dflash_stm32g4x.c168 bool bank_swap; in erase_page() local
170 bank_swap = (LL_SYSCFG_GetFlashBankMode() == LL_SYSCFG_BANKMODE_BANK2); in erase_page()
172 if ((offset < (FLASH_SIZE / 2)) && !bank_swap) { in erase_page()
177 } else if ((offset >= BANK2_OFFSET) && bank_swap) { in erase_page()
182 } else if ((offset < (FLASH_SIZE / 2)) && bank_swap) { in erase_page()
187 } else if ((offset >= BANK2_OFFSET) && !bank_swap) { in erase_page()
Dflash_stm32h7x.c194 bool bank_swap; in get_sector() local
196 bank_swap = (READ_BIT(FLASH->OPTCR, FLASH_OPTCR_SWAP_BANK) in get_sector()
199 if ((offset < (REAL_FLASH_SIZE_KB / 2)) && !bank_swap) { in get_sector()
203 } else if ((offset >= BANK2_OFFSET) && bank_swap) { in get_sector()
208 } else if ((offset < (REAL_FLASH_SIZE_KB / 2)) && bank_swap) { in get_sector()
212 } else if ((offset >= BANK2_OFFSET) && !bank_swap) { in get_sector()