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