From 73070987804023f50fcc4a264de8371fbba723d2 Mon Sep 17 00:00:00 2001 From: xoviat Date: Tue, 5 Sep 2023 17:50:45 -0500 Subject: [PATCH] stm32: don't generate adc5 --- embassy-stm32/src/adc/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/embassy-stm32/src/adc/mod.rs b/embassy-stm32/src/adc/mod.rs index bdb1ab8a..0eeadfa9 100644 --- a/embassy-stm32/src/adc/mod.rs +++ b/embassy-stm32/src/adc/mod.rs @@ -126,6 +126,9 @@ foreach_peripheral!( #[cfg(not(any(stm32g4x1, stm32g4x2, stm32g4x3, stm32g4x4)))] impl crate::adc::Instance for peripherals::ADC4 {} + }; + (adc, ADC5) => { + }; (adc, $inst:ident) => { impl crate::adc::sealed::Instance for peripherals::$inst {