1# NXP Kinetis temperature sensor configuration options
2
3# Copyright (c) 2020 Vestas Wind Systems A/S
4# SPDX-License-Identifier: Apache-2.0
5
6config TEMP_KINETIS
7	bool "NXP Kinetis Temperature Sensor"
8	default y
9	depends on DT_HAS_NXP_KINETIS_TEMPERATURE_ENABLED
10	depends on (ADC && SOC_FAMILY_KINETIS)
11	help
12	  Enable driver for NXP Kinetis temperature sensor.
13
14if TEMP_KINETIS
15
16config TEMP_KINETIS_RESOLUTION
17	int "ADC resolution"
18	default 16 if HAS_MCUX_ADC16
19	default 12 if HAS_MCUX_ADC12
20	help
21	  ADC resolution to use for the temperature sensor and bandgap
22	  voltage readings.
23
24config TEMP_KINETIS_OVERSAMPLING
25	int "ADC oversampling"
26	default 0
27	range 0 5
28	help
29	  ADC oversampling to use for the temperature sensor and
30	  bandgap voltage readings. Oversampling can help in providing
31	  more stable readings.
32
33config TEMP_KINETIS_FILTER
34	bool "Digital filtering of ADC readings"
35	help
36	  Enable weighted average digital filtering of the ADC
37	  readings as per NXP AN3031.
38
39endif # TEMP_KINETIS
40