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"
|
2022-07-20 11:41:45 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_KINETIS_TEMPERATURE_ENABLED
|
2020-01-13 06:17:56 +08:00
|
|
|
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
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Digital filtering of ADC readings"
|
2020-03-20 21:17:17 +08:00
|
|
|
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
|