Skip to content

Commit

Permalink
stm32/flash: Fix get_bank function for STM32H750.
Browse files Browse the repository at this point in the history
STM32H750 has only 1 flash bank so function get_bank should always return
FLASH_BANK_1.
  • Loading branch information
jahr authored and dpgeorge committed Apr 4, 2023
1 parent 9f74ffb commit 5652f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/stm32/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5652f1f

Please sign in to comment.