aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/stm32/src
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/boot/bootloader/stm32/src
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/boot/bootloader/stm32/src')
-rw-r--r--examples/boot/bootloader/stm32/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/boot/bootloader/stm32/src/main.rs b/examples/boot/bootloader/stm32/src/main.rs
index 294464d1c..4b17cd799 100644
--- a/examples/boot/bootloader/stm32/src/main.rs
+++ b/examples/boot/bootloader/stm32/src/main.rs
@@ -20,7 +20,7 @@ fn main() -> ! {
20 */ 20 */
21 21
22 let mut bl: BootLoader<ERASE_SIZE, WRITE_SIZE> = BootLoader::default(); 22 let mut bl: BootLoader<ERASE_SIZE, WRITE_SIZE> = BootLoader::default();
23 let flash = Flash::unlock(p.FLASH); 23 let flash = Flash::new(p.FLASH);
24 let mut flash = BootFlash::<_, ERASE_SIZE, ERASE_VALUE>::new(flash); 24 let mut flash = BootFlash::<_, ERASE_SIZE, ERASE_VALUE>::new(flash);
25 let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); 25 let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash));
26 core::mem::drop(flash); 26 core::mem::drop(flash);