Skip to content
Commit ef05063e authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Carles Cufí
Browse files

drivers: adc: stm32: enable battery voltage input without CONFIG_STM32_VBAT



Allow the battery voltage to be read through the ADC even if the
CONFIG_STM32_VBAT driver is not enabled.

I guessed this part of code is conditionally compiled depending on
CONFIG_STM32_VBAT because this feature, and hence the
LL_ADC_CHANNEL_VBAT constant is not available on all families. As the
feature is already checked at runtime (as the same driver supports
multiple instances), we can conditionally compile it depending on
LL_ADC_CHANNEL_VBAT instead.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 1b4e5b8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment