mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-30 05:40:55 +00:00
Fix formatting of u5 file
This commit is contained in:
parent
487b42f62c
commit
420cbb437f
@ -93,13 +93,9 @@ pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), E
|
||||
|
||||
let ret: Result<(), Error> = blocking_wait_ready();
|
||||
#[cfg(feature = "trustzone-secure")]
|
||||
pac::FLASH
|
||||
.seccr()
|
||||
.modify(|w| w.set_per(false));
|
||||
pac::FLASH.seccr().modify(|w| w.set_per(false));
|
||||
#[cfg(not(feature = "trustzone-secure"))]
|
||||
pac::FLASH
|
||||
.nscr()
|
||||
.modify(|w| w.set_per(false));
|
||||
pac::FLASH.nscr().modify(|w| w.set_per(false));
|
||||
clear_all_err();
|
||||
ret
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user