1# Copyright (c) 2016 Intel Corporation 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig HTS221 5 bool "HTS221 temperature and humidity sensor" 6 default y 7 depends on DT_HAS_ST_HTS221_ENABLED 8 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_HTS221),i2c) 9 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_HTS221),spi) 10 select HAS_STMEMSC 11 select USE_STDC_HTS221 12 help 13 Enable driver for HTS221 I2C/SPI-based temperature and humidity sensor. 14 15if HTS221 16 17choice HTS221_TRIGGER_MODE 18 prompt "Trigger mode" 19 default HTS221_TRIGGER_GLOBAL_THREAD 20 help 21 Specify the type of triggering to be used by the driver. 22 23config HTS221_TRIGGER_NONE 24 bool "No trigger" 25 26config HTS221_TRIGGER_GLOBAL_THREAD 27 bool "Use global thread" 28 depends on GPIO 29 select HTS221_TRIGGER 30 31config HTS221_TRIGGER_OWN_THREAD 32 bool "Use own thread" 33 depends on GPIO 34 select HTS221_TRIGGER 35 36endchoice # HTS221_TRIGGER_MODE 37 38config HTS221_TRIGGER 39 bool 40 41config HTS221_THREAD_PRIORITY 42 int "Thread priority" 43 depends on HTS221_TRIGGER_OWN_THREAD 44 default 10 45 help 46 Priority of thread used by the driver to handle interrupts. 47 48config HTS221_THREAD_STACK_SIZE 49 int "Thread stack size" 50 depends on HTS221_TRIGGER_OWN_THREAD 51 default 1024 52 help 53 Stack size of thread used by the driver to handle interrupts. 54 55config HTS221_ODR 56 string "Output data rate" 57 default "1" 58 help 59 Sensor output data rate expressed in samples per second. 60 Data rates supported by the chip are 1, 7 and 12.5. 61 62endif # HTS221 63