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/stm32h7/src/bin/flash.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/stm32h7/src/bin/flash.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/flash.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/flash.rs b/examples/stm32h7/src/bin/flash.rs index 6682c64d5..ee86bdbf6 100644 --- a/examples/stm32h7/src/bin/flash.rs +++ b/examples/stm32h7/src/bin/flash.rs | |||
| @@ -19,7 +19,7 @@ async fn main(_spawner: Spawner) { | |||
| 19 | // wait a bit before accessing the flash | 19 | // wait a bit before accessing the flash |
| 20 | Timer::after(Duration::from_millis(300)).await; | 20 | Timer::after(Duration::from_millis(300)).await; |
| 21 | 21 | ||
| 22 | let mut f = Flash::unlock(p.FLASH); | 22 | let mut f = Flash::new(p.FLASH); |
| 23 | 23 | ||
| 24 | info!("Reading..."); | 24 | info!("Reading..."); |
| 25 | let mut buf = [0u8; 32]; | 25 | let mut buf = [0u8; 32]; |
