From b3989bc11fcd7042b75ea2f9769971516618f5f6 Mon Sep 17 00:00:00 2001 From: Jue Date: Mon, 17 Oct 2022 23:07:54 +0200 Subject: [PATCH] cpu/efm32: remove ADC defintion for CPUs without ADC Gecko Series 2 is shipped with a new IADC peripheral which is backed by its own emlib driver. --- cpu/efm32/include/periph_cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/efm32/include/periph_cpu.h b/cpu/efm32/include/periph_cpu.h index 91961945ee..8df5ecada2 100644 --- a/cpu/efm32/include/periph_cpu.h +++ b/cpu/efm32/include/periph_cpu.h @@ -41,6 +41,7 @@ extern "C" { #endif +#if (defined(ADC_COUNT) && (ADC_COUNT > 0)) || defined(DOXYGEN) /** * @brief Internal macro for combining ADC resolution (x) with number of * shifts (y). @@ -90,6 +91,7 @@ typedef struct { ADC_Ref_TypeDef reference; /**< channel voltage reference */ ADC_AcqTime_TypeDef acq_time; /**< channel acquisition time */ } adc_chan_conf_t; +#endif /** * @brief Length of CPU ID in octets.