summaryrefslogtreecommitdiff
path: root/ports/stm32/flashbdev.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-11-01 17:06:41 +1100
committerDamien George <damien@micropython.org>2024-01-08 12:31:10 +1100
commitcf115918e66bea460256661848d9198ca6ca994d (patch)
tree02754753f29ddae6421efc9f973df54fb9b582eb /ports/stm32/flashbdev.c
parentcd0f75069cf7488d5b26760c3c9a2f357df919f3 (diff)
stm32/flash: Simplify sector calculation for homogeneous flash layout.
Newer STM32 parts have homogeneous flash layout, and in this case the MCU configuration and page/sector calculation can be simplified. The affected functions are `flash_is_valid_addr()` and `flash_get_sector_info()`, which are now simpler for homogeneous flash. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/stm32/flashbdev.c')
0 files changed, 0 insertions, 0 deletions