aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/stm32h7/src
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-05-25 21:40:54 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-05-25 21:40:54 +0200
commit860b519f9993bd8991849c680aae058558aadfbd (patch)
treea0f815620d3be788cb69f0c97c6e42480ee24bae /examples/boot/application/stm32h7/src
parent18d14dff48d1fd49cfd43fb94304bf932a74a6ca (diff)
Let Flash<Async/Blocking> be a thing
Diffstat (limited to 'examples/boot/application/stm32h7/src')
-rw-r--r--examples/boot/application/stm32h7/src/bin/a.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/boot/application/stm32h7/src/bin/a.rs b/examples/boot/application/stm32h7/src/bin/a.rs
index b8617c3bd..202220223 100644
--- a/examples/boot/application/stm32h7/src/bin/a.rs
+++ b/examples/boot/application/stm32h7/src/bin/a.rs
@@ -16,7 +16,7 @@ static APP_B: &[u8] = include_bytes!("../../b.bin");
16#[embassy_executor::main] 16#[embassy_executor::main]
17async fn main(_spawner: Spawner) { 17async fn main(_spawner: Spawner) {
18 let p = embassy_stm32::init(Default::default()); 18 let p = embassy_stm32::init(Default::default());
19 let mut flash = Flash::new_blocking_only(p.FLASH); 19 let mut flash = Flash::new_blocking(p.FLASH);
20 20
21 let button = Input::new(p.PC13, Pull::Down); 21 let button = Input::new(p.PC13, Pull::Down);
22 let mut button = ExtiInput::new(button, p.EXTI13); 22 let mut button = ExtiInput::new(button, p.EXTI13);