diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 13:42:42 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 20:07:42 +0200 |
| commit | 7371eefa8666c304fce5c0e25f5315b1f10161fa (patch) | |
| tree | 5f497dd02f3c08e7a383c43eefeb9763f59705d5 /examples/boot/bootloader/stm32 | |
| parent | 15636f05f54458a184f0e117b1cfdb9d8e929f1d (diff) | |
Align with new bind_interrupt
Diffstat (limited to 'examples/boot/bootloader/stm32')
| -rw-r--r-- | examples/boot/bootloader/stm32/src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/boot/bootloader/stm32/src/main.rs b/examples/boot/bootloader/stm32/src/main.rs index 49c21920b..5e8a4f2b3 100644 --- a/examples/boot/bootloader/stm32/src/main.rs +++ b/examples/boot/bootloader/stm32/src/main.rs | |||
| @@ -20,8 +20,7 @@ fn main() -> ! { | |||
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | let mut bl: BootLoader<2048> = BootLoader::default(); | 22 | let mut bl: BootLoader<2048> = BootLoader::default(); |
| 23 | let flash = Flash::new(p.FLASH); | 23 | let layout = Flash::new_blocking_only(p.FLASH).into_blocking_regions(); |
| 24 | let layout = flash.into_regions(); | ||
| 25 | let mut flash = BootFlash::new(layout.bank1_region); | 24 | let mut flash = BootFlash::new(layout.bank1_region); |
| 26 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); | 25 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); |
| 27 | core::mem::drop(flash); | 26 | core::mem::drop(flash); |
