[stm32] Fix CI
This commit is contained in:
parent
955595bbec
commit
b0629f3357
@ -199,6 +199,3 @@ pub(crate) unsafe fn blocking_wait_ready(bank: pac::flash::Bank) -> Result<(), E
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// safety: must be called only once at startup
|
||||
pub(crate) unsafe fn init() {}
|
||||
|
@ -185,12 +185,3 @@ pub(crate) unsafe fn blocking_wait_ready() -> Result<(), Error> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// safety: must be called only once at startup
|
||||
pub(crate) unsafe fn init() {
|
||||
crate::pac::FLASH.acr().modify(|w| {
|
||||
w.set_dcen(true);
|
||||
w.set_icen(true);
|
||||
w.set_prften(true);
|
||||
});
|
||||
}
|
||||
|
@ -181,5 +181,6 @@ cfg_if::cfg_if! {
|
||||
|
||||
// safety: must be called only once at startup
|
||||
pub(crate) unsafe fn init() {
|
||||
#[cfg(any(flash_f3, flash_f4, flash_f7))]
|
||||
family::init();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user