Skip to content

Commit 3885e4b

Browse files
committed
cpu/efm32: remove ADC defintion for CPUs without ADC
Gecko Series 2 is shipped with a new IADC peripheral which is shipped with its own emlib driver.
1 parent 2e5e70e commit 3885e4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpu/efm32/include/periph_cpu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
extern "C" {
4242
#endif
4343

44+
#if (defined(ADC_COUNT) && (ADC_COUNT > 0)) || defined(DOXYGEN)
4445
/**
4546
* @brief Internal macro for combining ADC resolution (x) with number of
4647
* shifts (y).
@@ -90,6 +91,7 @@ typedef struct {
9091
ADC_Ref_TypeDef reference; /**< channel voltage reference */
9192
ADC_AcqTime_TypeDef acq_time; /**< channel acquisition time */
9293
} adc_chan_conf_t;
94+
#endif
9395

9496
/**
9597
* @brief Length of CPU ID in octets.

0 commit comments

Comments
 (0)