[stm32] Fix CI

This commit is contained in:
Erik Henriksson 2022-12-09 09:24:07 +01:00
parent 955595bbec
commit b0629f3357
3 changed files with 1 additions and 12 deletions

View File

@ -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() {}

View File

@ -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);
});
}

View File

@ -181,5 +181,6 @@ cfg_if::cfg_if! {
// safety: must be called only once at startup // safety: must be called only once at startup
pub(crate) unsafe fn init() { pub(crate) unsafe fn init() {
#[cfg(any(flash_f3, flash_f4, flash_f7))]
family::init(); family::init();
} }