diff options
| author | Mathias <[email protected]> | 2022-09-30 06:00:46 +0200 |
|---|---|---|
| committer | Mathias <[email protected]> | 2022-09-30 06:00:46 +0200 |
| commit | a7fdeac560b5e277afa80cd60f788a48df6069c9 (patch) | |
| tree | 03a122c378fb06ee8b86f05fb456db9a16baa1f2 /examples/boot/application/stm32l0/src/bin/a.rs | |
| parent | 1d6f5493e7764767eb592e0b90d6b07d46b100ca (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.rs | 2 |
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] |
| 19 | async fn main(_spawner: Spawner) { | 19 | async 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); |
