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:
parent
9f74ffb6eb
commit
5652f1f661
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user