commit | 06b57926a2a6ea39e7485a6e69c4264f578c939b | [log] [tgz] |
---|---|---|
author | Brian Juel Folkmann <bju@trackunit.com> | Fri Jan 05 09:10:31 2024 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Jan 11 13:53:17 2024 +0100 |
tree | 1fe34dec2d9a51841d91f30b197947b823eb930c | |
parent | 768ed260101ff30221f7b95dca00dc7ba93097e5 [diff] |
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: Brian Juel Folkmann <bju@trackunit.com>