stm32/flash: Fix get_bank function for STM32H750.

STM32H750 has only 1 flash bank so function get_bank should always return
FLASH_BANK_1.
This commit is contained in:
Jan Hrudka 2023-03-31 21:12:40 +02:00 committed by Damien George
parent 9f74ffb6eb
commit 5652f1f661
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ static const flash_layout_t flash_layout[] = {
#error Unsupported processor
#endif
#if defined(STM32H723xx)
#if defined(STM32H723xx) || defined(STM32H750xx)
// get the bank of a given flash address
static uint32_t get_bank(uint32_t addr) {