zephyr/drivers/sensor/stm32_vbat/Kconfig
Kumar Gala f0441fba58 drivers: sensor: Update drivers to use devicetree Kconfig symbol
Update sensor drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-22 02:20:18 -05:00

13 lines
346 B
Plaintext

# STM32 battery sensor configuration options
# Copyright (c) 2022 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
config STM32_VBAT
bool "STM32 Vbat Sensor"
default y
depends on DT_HAS_ST_STM32_VBAT_ENABLED
depends on ADC && (SOC_FAMILY_STM32 && !SOC_SERIES_STM32F1X)
help
Enable driver for STM32 Vbat sensor and then also ADC