Skip to content
Commit 469d54e2 authored by Keith Packard's avatar Keith Packard Committed by Benjamin Cabé
Browse files

drivers/adc/adc_stm32: Check both single-ended and differential defines



The stm32u3x header files defines LL_ADC_SINGLE_ENDED but not
LL_ADC_DIFFERENTIAL as the device doesn't support differential mode. The
driver only checked for LL_ADC_SINGLE_ENDED and assumed that when that was
defined, LL_ADC_DIFFERENTIAL would also be defined.

Check for both when figuring out which calibration type will be required.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent c5e8b6c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment