Searched refs:bank_swap (Results 1 – 3 of 3) sorted by relevance
168 bool bank_swap; in erase_page() local170 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()
242 bool bank_swap; in erase_page() local244 bank_swap = in erase_page()247 if ((offset < (FLASH_SIZE / 2)) && !bank_swap) { in erase_page()252 } else if ((offset >= BANK2_OFFSET) && bank_swap) { in erase_page()257 } else if ((offset < (FLASH_SIZE / 2)) && bank_swap) { in erase_page()262 } else if ((offset >= BANK2_OFFSET) && !bank_swap) { in erase_page()
482 bool bank_swap; local484 bank_swap = (READ_BIT(FLASH->OPTCR, FLASH_OPTCR_SWAP_BANK) == FLASH_OPTCR_SWAP_BANK);486 if ((temp_offset < (REAL_FLASH_SIZE_KB / 2)) && !bank_swap) {490 } else if ((temp_offset >= BANK2_OFFSET) && bank_swap) {495 } else if ((temp_offset < (REAL_FLASH_SIZE_KB / 2)) && bank_swap) {499 } else if ((temp_offset >= BANK2_OFFSET) && !bank_swap) {