Remove flash lock/unlock public API from stm32 flash, and perform the unlocking and locking automatically on erase and write operations

This commit is contained in:
Mathias
2022-09-30 06:00:46 +02:00
parent 1d6f5493e7
commit a7fdeac560
16 changed files with 28 additions and 29 deletions

View File

@ -15,7 +15,7 @@ async fn main(_spawner: Spawner) {
const ADDR: u32 = 0x26000;
let mut f = Flash::unlock(p.FLASH);
let mut f = Flash::new(p.FLASH);
info!("Reading...");
let mut buf = [0u8; 8];