From 7a3d34c1ed3db330c6db55b81cd535747181c3cb Mon Sep 17 00:00:00 2001 From: Frederik Date: Sat, 12 Feb 2022 23:56:50 +0100 Subject: [PATCH] fix build for stm32f410tb --- embassy-stm32/src/adc/v2.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/embassy-stm32/src/adc/v2.rs b/embassy-stm32/src/adc/v2.rs index b6451c9de..e79680493 100644 --- a/embassy-stm32/src/adc/v2.rs +++ b/embassy-stm32/src/adc/v2.rs @@ -6,9 +6,14 @@ use embedded_hal_02::blocking::delay::DelayUs; pub const VDDA_CALIB_MV: u32 = 3000; +#[cfg(not(rcc_f4))] +unsafe fn enable() { + todo!() +} + +#[cfg(rcc_f4)] unsafe fn enable() { // TODO do not enable all adc clocks if not needed - #[cfg(rcc_f4)] crate::pac::RCC.apb2enr().modify(|w| w.set_adc1en(true)); crate::pac::RCC.apb2enr().modify(|w| w.set_adc2en(true)); crate::pac::RCC.apb2enr().modify(|w| w.set_adc3en(true));