1# ADT7310 temperature sensor configuration options 2 3# Copyright (c) 2023 Andriy Gelman 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig ADT7310 7 bool "ADT7310 Temperature Sensor" 8 default y 9 depends on DT_HAS_ADI_ADT7310_ENABLED 10 select SPI 11 help 12 Enable the driver for Analog Devices ADT7310 High-Accuracy 13 16-bit Digital SPI Temperature Sensors. 14 15if ADT7310 16 17config ADT7310_TRIGGER 18 bool 19 depends on GPIO 20 21choice 22 prompt "Sets trigger mode" 23 default ADT7310_TRIGGER_NONE 24 help 25 Sets thread type for the interrupt handler. 26 27config ADT7310_TRIGGER_NONE 28 bool "No trigger" 29 30config ADT7310_TRIGGER_GLOBAL_THREAD 31 bool "Use global thread" 32 select ADT7310_TRIGGER 33 help 34 Use a global thread for the interrupt handler. 35 36config ADT7310_TRIGGER_OWN_THREAD 37 bool "Use own thread" 38 select ADT7310_TRIGGER 39 help 40 Use a separate thread for the interrupt handler. 41 42endchoice 43 44if ADT7310_TRIGGER_OWN_THREAD 45 46config ADT7310_THREAD_PRIORITY 47 int "Thread priority of the interrupt handler" 48 default 1 49 help 50 Thread priority of the interrupt handler. A higher number implies a 51 higher priority. The thread is cooperative and will not be interrupted by 52 another thread until execution is released. 53 54config ADT7310_THREAD_STACK_SIZE 55 int "Stack size of the interrupt handler thread" 56 default 1024 57 help 58 Stack size of the interrupt handler thread. 59 60endif # ADT7310_TRIGGER_OWN_THREAD 61 62endif # ADT7310 63