aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/stm32l0/src/bin/a.rs
diff options
context:
space:
mode:
authorMathias <[email protected]>2022-09-30 06:00:46 +0200
committerMathias <[email protected]>2022-09-30 06:00:46 +0200
commita7fdeac560b5e277afa80cd60f788a48df6069c9 (patch)
tree03a122c378fb06ee8b86f05fb456db9a16baa1f2 /examples/boot/application/stm32l0/src/bin/a.rs
parent1d6f5493e7764767eb592e0b90d6b07d46b100ca (diff)
Remove flash lock/unlock public API from stm32 flash, and perform the unlocking and locking automatically on erase and write operations
Diffstat (limited to 'examples/boot/application/stm32l0/src/bin/a.rs')
-rw-r--r--examples/boot/application/stm32l0/src/bin/a.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/boot/application/stm32l0/src/bin/a.rs b/examples/boot/application/stm32l0/src/bin/a.rs
index f0b0b80e3..59ca34386 100644
--- a/examples/boot/application/stm32l0/src/bin/a.rs
+++ b/examples/boot/application/stm32l0/src/bin/a.rs
@@ -18,7 +18,7 @@ static APP_B: &[u8] = include_bytes!("../../b.bin");
18#[embassy_executor::main] 18#[embassy_executor::main]
19async fn main(_spawner: Spawner) { 19async fn main(_spawner: Spawner) {
20 let p = embassy_stm32::init(Default::default()); 20 let p = embassy_stm32::init(Default::default());
21 let flash = Flash::unlock(p.FLASH); 21 let flash = Flash::new(p.FLASH);
22 let mut flash = BlockingAsync::new(flash); 22 let mut flash = BlockingAsync::new(flash);
23 23
24 let button = Input::new(p.PB2, Pull::Up); 24 let button = Input::new(p.PB2, Pull::Up);