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:
@ -16,7 +16,7 @@ static APP_B: &[u8] = include_bytes!("../../b.bin");
|
||||
#[embassy_executor::main]
|
||||
async fn main(_spawner: Spawner) {
|
||||
let p = embassy_stm32::init(Default::default());
|
||||
let mut flash = Flash::unlock(p.FLASH);
|
||||
let mut flash = Flash::new(p.FLASH);
|
||||
|
||||
let button = Input::new(p.PC13, Pull::Down);
|
||||
let mut button = ExtiInput::new(button, p.EXTI13);
|
||||
|
Reference in New Issue
Block a user