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:
@ -13,7 +13,7 @@ async fn main(_spawner: Spawner) {
|
||||
let p = embassy_stm32::init(Default::default());
|
||||
info!("Hello Flash!");
|
||||
|
||||
let mut f = Flash::unlock(p.FLASH);
|
||||
let mut f = Flash::new(p.FLASH);
|
||||
|
||||
// Sector 5
|
||||
test_flash(&mut f, 128 * 1024, 128 * 1024);
|
||||
|
Reference in New Issue
Block a user