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