1# SHT3xD temperature and humidity sensor configuration options 2 3# Copyright (c) 2016 Intel Corporation 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig SHT3XD 7 bool "SHT3xD Temperature and Humidity Sensor" 8 default y 9 depends on DT_HAS_SENSIRION_SHT3XD_ENABLED 10 select I2C 11 select CRC 12 help 13 Enable driver for SHT3xD temperature and humidity sensors. 14 15if SHT3XD 16 17choice SHT3XD_TRIGGER_MODE 18 prompt "Trigger mode" 19 default SHT3XD_TRIGGER_NONE 20 help 21 Specify the type of triggering to be used by the driver. 22 23config SHT3XD_TRIGGER_NONE 24 bool "No trigger" 25 26config SHT3XD_TRIGGER_GLOBAL_THREAD 27 bool "Use global thread" 28 depends on GPIO 29 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SENSIRION_SHT3XD),alert-gpios) 30 select SHT3XD_TRIGGER 31 32config SHT3XD_TRIGGER_OWN_THREAD 33 bool "Use own thread" 34 depends on GPIO 35 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SENSIRION_SHT3XD),alert-gpios) 36 select SHT3XD_TRIGGER 37 38endchoice 39 40config SHT3XD_TRIGGER 41 bool 42 43config SHT3XD_THREAD_PRIORITY 44 int "Thread priority" 45 depends on SHT3XD_TRIGGER_OWN_THREAD 46 default 10 47 help 48 Priority of thread used by the driver to handle interrupts. 49 50config SHT3XD_THREAD_STACK_SIZE 51 int "Thread stack size" 52 depends on SHT3XD_TRIGGER_OWN_THREAD 53 default 1024 54 help 55 Stack size of thread used by the driver to handle interrupts. 56 57choice SHT3XD_REPEATABILITY 58 prompt "Measurement repeatability" 59 default SHT3XD_REPEATABILITY_HIGH 60 help 61 Repeatability modes differ with respect to measurement duration, 62 noise level and energy consumption. 63 64config SHT3XD_REPEATABILITY_LOW 65 bool "low" 66 67config SHT3XD_REPEATABILITY_MEDIUM 68 bool "medium" 69 70config SHT3XD_REPEATABILITY_HIGH 71 bool "high" 72 73endchoice 74 75choice SHT3XD_MEASUREMENT_MODE 76 prompt "Measurement mode" 77 default SHT3XD_PERIODIC_MODE 78 79config SHT3XD_SINGLE_SHOT_MODE 80 bool "single shot" 81 82config SHT3XD_PERIODIC_MODE 83 bool "periodic data acquisition" 84 85endchoice 86 87choice SHT3XD_MPS 88 prompt "Measurements per second" 89 default SHT3XD_MPS_1 90 depends on SHT3XD_PERIODIC_MODE 91 help 92 Number of measurements per second. 93 94config SHT3XD_MPS_05 95 bool "0.5" 96 97config SHT3XD_MPS_1 98 bool "1" 99 100config SHT3XD_MPS_2 101 bool "2" 102 103config SHT3XD_MPS_4 104 bool "4" 105 106config SHT3XD_MPS_10 107 bool "10" 108 109endchoice 110 111endif # SHT3XD 112