aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src/bin/flash.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/stm32f4/src/bin/flash.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/stm32f4/src/bin/flash.rs')
-rw-r--r--examples/stm32f4/src/bin/flash.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/flash.rs b/examples/stm32f4/src/bin/flash.rs
index 393d61e86..7ea068a42 100644
--- a/examples/stm32f4/src/bin/flash.rs
+++ b/examples/stm32f4/src/bin/flash.rs
@@ -13,7 +13,7 @@ async fn main(_spawner: Spawner) {
13 let p = embassy_stm32::init(Default::default()); 13 let p = embassy_stm32::init(Default::default());
14 info!("Hello Flash!"); 14 info!("Hello Flash!");
15 15
16 let mut f = Flash::unlock(p.FLASH); 16 let mut f = Flash::new(p.FLASH);
17 17
18 // Sector 5 18 // Sector 5
19 test_flash(&mut f, 128 * 1024, 128 * 1024); 19 test_flash(&mut f, 128 * 1024, 128 * 1024);