zephyr/drivers/sensor/nxp_kinetis_temp/Kconfig
Henrik Brix Andersen c8d26b4b14 drivers: sensor: nxp_kinetis_temp: add weighted average filter
Add an optional weighted average filter to the ADC readings in the NXP
Kinetis temperature sensor driver as recommended in NXP AN3031.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2020-04-06 15:39:36 -05:00

38 lines
945 B
Plaintext

# NXP Kinetis temperature sensor configuration options
# Copyright (c) 2020 Vestas Wind Systems A/S
# SPDX-License-Identifier: Apache-2.0
config TEMP_KINETIS
bool "NXP Kinetis Temperature Sensor"
depends on (ADC && SOC_FAMILY_KINETIS)
help
Enable driver for NXP Kinetis temperature sensor.
if TEMP_KINETIS
config TEMP_KINETIS_RESOLUTION
int "ADC resolution"
default 16 if HAS_MCUX_ADC16
default 12 if HAS_MCUX_ADC12
help
ADC resolution to use for the temperature sensor and bandgap
voltage readings.
config TEMP_KINETIS_OVERSAMPLING
int "ADC oversampling"
default 0
range 0 5
help
ADC oversampling to use for the temperature sensor and
bandgap voltage readings. Oversampling can help in providing
more stable readings.
config TEMP_KINETIS_FILTER
bool "Enable digital filtering of ADC readings"
help
Enable weighted average digital filtering of the ADC
readings as per NXP AN3031.
endif # TEMP_KINETIS