diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 21:40:54 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 21:40:54 +0200 |
| commit | 860b519f9993bd8991849c680aae058558aadfbd (patch) | |
| tree | a0f815620d3be788cb69f0c97c6e42480ee24bae /examples/boot/bootloader/stm32/src | |
| parent | 18d14dff48d1fd49cfd43fb94304bf932a74a6ca (diff) | |
Let Flash<Async/Blocking> be a thing
Diffstat (limited to 'examples/boot/bootloader/stm32/src')
| -rw-r--r-- | examples/boot/bootloader/stm32/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/boot/bootloader/stm32/src/main.rs b/examples/boot/bootloader/stm32/src/main.rs index 5e8a4f2b3..f81fdbc5f 100644 --- a/examples/boot/bootloader/stm32/src/main.rs +++ b/examples/boot/bootloader/stm32/src/main.rs | |||
| @@ -20,7 +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 layout = Flash::new_blocking_only(p.FLASH).into_blocking_regions(); | 23 | let layout = Flash::new_blocking(p.FLASH).into_blocking_regions(); |
| 24 | let mut flash = BootFlash::new(layout.bank1_region); | 24 | let mut flash = BootFlash::new(layout.bank1_region); |
| 25 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); | 25 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); |
| 26 | core::mem::drop(flash); | 26 | core::mem::drop(flash); |
