[stm32] Feature guard flash::init()

This commit is contained in:
Erik Henriksson 2022-12-08 19:11:31 +01:00
parent 0f32a67e38
commit 4b5434c7b6

View File

@ -161,7 +161,10 @@ pub fn init(config: Config) -> Peripherals {
// must be after rcc init // must be after rcc init
#[cfg(feature = "_time-driver")] #[cfg(feature = "_time-driver")]
time_driver::init(); time_driver::init();
#[cfg(any(
flash_l0, flash_l1, flash_wl, flash_wb, flash_l4, flash_f3, flash_f4, flash_f7, flash_h7
))]
flash::init(); flash::init();
} }