summaryrefslogtreecommitdiff
path: root/examples/boot/application/stm32h7/src/bin
diff options
context:
space:
mode:
authorMathias <mk@blackbird.online>2022-09-30 06:00:46 +0200
committerMathias <mk@blackbird.online>2022-09-30 06:00:46 +0200
commita7fdeac560b5e277afa80cd60f788a48df6069c9 (patch)
tree03a122c378fb06ee8b86f05fb456db9a16baa1f2 /examples/boot/application/stm32h7/src/bin
parent1d6f5493e7764767eb592e0b90d6b07d46b100ca (diff)
downloadembassy-a7fdeac560b5e277afa80cd60f788a48df6069c9.zip
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/stm32h7/src/bin')
-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 0fe598a5..8b452be3 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");
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default());
- let mut flash = Flash::unlock(p.FLASH);
+ let mut flash = Flash::new(p.FLASH);
let button = Input::new(p.PC13, Pull::Down);
let mut button = ExtiInput::new(button, p.EXTI13);