This add basic support for the STM32 Digital Temperature Sensor found notably on the STM32H7 series. It work in interrupt mode and support basic power device management. It does not support the more advanced features like using the temperature threshold, triggers from LPTIM or using the LSE clock in during sleep or stop. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
19 lines
741 B
Plaintext
19 lines
741 B
Plaintext
# STM32 digital temperature sensor configuration options
|
|
|
|
# Copyright (c) 2024 Aurelien Jarno
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config STM32_DIGI_TEMP
|
|
bool "STM32 Digital Temperature Sensor"
|
|
default y
|
|
depends on DT_HAS_ST_STM32_DIGI_TEMP_ENABLED
|
|
depends on SOC_FAMILY_STM32
|
|
help
|
|
Enable the driver for STM32 digital temperature sensor. This sensor
|
|
is different from the STM32 analog temperature sensor, which is read
|
|
by an ADC. While both drivers have similar code footprint, the analog
|
|
temperature driver also requires the ADC driver to be enabled. The
|
|
sensors differ in precision, accuracy and power consumption. Users
|
|
are encouraged to consult the datasheet to select the sensor that
|
|
best suits their needs.
|