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/stm32f7 | |
| 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/stm32f7')
| -rw-r--r-- | examples/boot/application/stm32f7/src/bin/a.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/boot/application/stm32f7/src/bin/a.rs b/examples/boot/application/stm32f7/src/bin/a.rs index 77b897b0f..79ab80e09 100644 --- a/examples/boot/application/stm32f7/src/bin/a.rs +++ b/examples/boot/application/stm32f7/src/bin/a.rs | |||
| @@ -16,7 +16,7 @@ static APP_B: &[u8] = include_bytes!("../../b.bin"); | |||
| 16 | #[embassy_executor::main] | 16 | #[embassy_executor::main] |
| 17 | async fn main(_spawner: Spawner) { | 17 | async 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::unlock(p.FLASH); | 19 | let mut flash = Flash::new(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); |
