1# Copyright (c) 2022 Würth Elektronik eiSos GmbH & Co. KG 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig WSEN_HIDS 5 bool "WSEN-HIDS humidity and temperature sensor" 6 default y 7 depends on DT_HAS_WE_WSEN_HIDS_ENABLED 8 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_HIDS),i2c) 9 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_HIDS),spi) 10 select HAS_WESENSORS 11 help 12 Enable driver for the WSEN-HIDS I2C/SPI-based humidity sensor with integrated 13 temperature sensor. 14 15if WSEN_HIDS 16 17choice WSEN_HIDS_TRIGGER_MODE 18 prompt "Trigger mode" 19 default WSEN_HIDS_TRIGGER_NONE 20 help 21 Specify the type of triggering to be used by the driver. 22 23config WSEN_HIDS_TRIGGER_NONE 24 bool "No trigger" 25 26config WSEN_HIDS_TRIGGER_GLOBAL_THREAD 27 bool "Use global thread" 28 depends on GPIO 29 select WSEN_HIDS_TRIGGER 30 31config WSEN_HIDS_TRIGGER_OWN_THREAD 32 bool "Use own thread" 33 depends on GPIO 34 select WSEN_HIDS_TRIGGER 35 36endchoice # WSEN_HIDS_TRIGGER_MODE 37 38config WSEN_HIDS_TRIGGER 39 bool 40 41config WSEN_HIDS_THREAD_PRIORITY 42 int "Thread priority" 43 depends on WSEN_HIDS_TRIGGER_OWN_THREAD 44 default 10 45 help 46 Priority of thread used by the driver to handle interrupts. 47 48config WSEN_HIDS_THREAD_STACK_SIZE 49 int "Thread stack size" 50 depends on WSEN_HIDS_TRIGGER_OWN_THREAD 51 default 1024 52 help 53 Stack size of thread used by the driver to handle interrupts. 54 55endif # WSEN_HIDS 56