Skip to content
Commit 06b57926 authored by Brian Juel Folkmann's avatar Brian Juel Folkmann Committed by Carles Cufí
Browse files

drivers: adc: stm32: Fix race condition with internal channels



When using one of the internal channels (die_temp, vbat, vref) the
channels are enabled in the individual drivers and disabled again
whenever an adc conversion is complete.

This creates a race condition if the ADC is used from multiple threads.

This commit moves the disabling of the channels to the individual
drivers.

Signed-off-by: default avatarBrian Juel Folkmann <bju@trackunit.com>
parent 768ed260
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment