From aa426bd3aa7ff7d15da7c6aed7052c282b7be352 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 4 Nov 2022 11:45:47 -0400 Subject: [PATCH] cpu/stm32/f2: add ADC support for f207zg --- cpu/stm32/include/periph/f2/periph_cpu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/stm32/include/periph/f2/periph_cpu.h b/cpu/stm32/include/periph/f2/periph_cpu.h index 598dfbc3b5..f16d4f5f35 100644 --- a/cpu/stm32/include/periph/f2/periph_cpu.h +++ b/cpu/stm32/include/periph/f2/periph_cpu.h @@ -28,7 +28,11 @@ extern "C" { /** * @brief Available number of ADC devices */ +#if defined (ADC3) +#define ADC_DEVS (3U) +#else #define ADC_DEVS (2U) +#endif #ifndef DOXYGEN