From 17fbfc6ffc21349c2032b6e55200fbc4897606d0 Mon Sep 17 00:00:00 2001 From: Wouter Geraedts Date: Thu, 17 Jul 2025 13:37:55 +0200 Subject: Removed reference to ADC3 for STM32G4x1 if the peripheral does not exist and added stm32g431kb to CI for testing --- ci.sh | 1 + embassy-stm32/src/adc/g4.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ci.sh b/ci.sh index 05720e4f2..842215a6b 100755 --- a/ci.sh +++ b/ci.sh @@ -161,6 +161,7 @@ cargo batch \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv8m.main-none-eabihf --features stm32l552ze,dual-bank,defmt,exti,time-driver-any,low-power,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32wl54jc-cm0p,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32wle5jb,defmt,exti,time-driver-any,time \ + --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32g431kb,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32g474pe,dual-bank,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features stm32f107vc,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features stm32f103re,defmt,exti,time-driver-any,time \ diff --git a/embassy-stm32/src/adc/g4.rs b/embassy-stm32/src/adc/g4.rs index cb3e342d8..43498966f 100644 --- a/embassy-stm32/src/adc/g4.rs +++ b/embassy-stm32/src/adc/g4.rs @@ -545,10 +545,12 @@ mod g4 { const CHANNEL: u8 = 17; } + #[cfg(peri_adc3_common)] impl VrefChannel for crate::peripherals::ADC3 { const CHANNEL: u8 = 18; } + #[cfg(peri_adc3_common)] impl VBatChannel for crate::peripherals::ADC3 { const CHANNEL: u8 = 17; } -- cgit