1# nRF temperature sensor configuration options
2
3# Copyright (c) 2016 ARM Ltd.
4# Copyright (c) 2024 Nordic Semiconductor ASA
5# SPDX-License-Identifier: Apache-2.0
6
7config TEMP_NRF5_FORCE_ALT
8	bool
9	depends on SOC_COMPATIBLE_NRF
10	help
11	  This option can be enabled to force an alternative implementation
12	  of the temperature sensor driver.
13
14config TEMP_NRF5
15	bool "nRF5 Temperature Sensor"
16	default y
17	depends on DT_HAS_NORDIC_NRF_TEMP_ENABLED
18	depends on MULTITHREADING || TEMP_NRF5_FORCE_ALT
19	help
20	  Enable driver for nRF5 temperature sensor.
21
22config TEMP_NRFS
23	bool "nRF Temperature Sensor accessed via nrfs"
24	default y
25	depends on DT_HAS_NORDIC_NRF_TEMP_NRFS_ENABLED
26	depends on NRFS
27	help
28	  Enable driver for nRF temperature sensor accessed through the nRF
29	  Services (nrfs) layer.
30
31if TEMP_NRFS
32
33module = TEMP_NRFS
34thread_priority = 10
35thread_stack_size = 1024
36source "drivers/sensor/Kconfig.trigger_template"
37
38endif # TEMP_NRFS
39