2020-01-13 06:17:56 +08:00
|
|
|
# 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.
|
|
|
|
|
2020-03-20 21:17:17 +08:00
|
|
|
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.
|
|
|
|
|
2020-01-13 06:17:56 +08:00
|
|
|
endif # TEMP_KINETIS
|