Set the CONFIG_STM32_VREF depending on the ADC, like the CONFIG_STM32_VBAT does Signed-off-by: Francois Ramu <francois.ramu@st.com>
13 lines
341 B
Plaintext
13 lines
341 B
Plaintext
# STM32 vref sensor configuration options
|
|
|
|
# Copyright (c) 2023 Kenneth J. Miller <ken@miller.ec>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config STM32_VREF
|
|
bool "STM32 VREF Sensor"
|
|
default y
|
|
depends on DT_HAS_ST_STM32_VREF_ENABLED
|
|
depends on ADC && (SOC_FAMILY_STM32 && !SOC_SERIES_STM32F1X)
|
|
help
|
|
Enable driver for STM32 Vref sensor.
|