[stm32] Feature guard flash::init()
This commit is contained in:
parent
0f32a67e38
commit
4b5434c7b6
@ -162,6 +162,9 @@ pub fn init(config: Config) -> Peripherals {
|
|||||||
#[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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user