diff options
| author | Jan Hrudka <jahr@atlas.cz> | 2023-03-31 21:12:40 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-04-04 14:58:54 +1000 |
| commit | 5652f1f661479f23468c90c531927f5f0a727979 (patch) | |
| tree | 4987b68c3496e268f08e2d1adb499754cce8cb31 | |
| parent | 9f74ffb6eb8a65206bc7a31240e07054b19d7afc (diff) | |
stm32/flash: Fix get_bank function for STM32H750.
STM32H750 has only 1 flash bank so function get_bank should always return
FLASH_BANK_1.
| -rw-r--r-- | ports/stm32/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/flash.c b/ports/stm32/flash.c index 2cc6c390b..12fa523cd 100644 --- a/ports/stm32/flash.c +++ b/ports/stm32/flash.c @@ -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) { |
