1# ST Microelectronics LPS22HH pressure and temperature sensor 2 3# Copyright (c) 2019 STMicroelectronics 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig LPS22HH 7 bool "LPS22HH pressure and temperature" 8 default y 9 depends on DT_HAS_ST_LPS22HH_ENABLED 10 depends on ZEPHYR_HAL_ST_MODULE 11 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22HH),i2c) 12 select I3C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22HH),i3c) 13 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22HH),spi) 14 select HAS_STMEMSC 15 select USE_STDC_LPS22HH 16 help 17 Enable driver for LPS22HH I2C-based pressure and temperature 18 sensor. 19 20if LPS22HH 21 22choice LPS22HH_TRIGGER_MODE 23 prompt "Trigger mode" 24 default LPS22HH_TRIGGER_GLOBAL_THREAD 25 help 26 Specify the type of triggering to be used by the driver. 27 28config LPS22HH_TRIGGER_NONE 29 bool "No trigger" 30 31config LPS22HH_TRIGGER_GLOBAL_THREAD 32 bool "Use global thread" 33 depends on GPIO 34 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ST_LPS22HH),drdy-gpios) 35 select LPS22HH_TRIGGER 36 37config LPS22HH_TRIGGER_OWN_THREAD 38 bool "Use own thread" 39 depends on GPIO 40 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ST_LPS22HH),drdy-gpios) 41 select LPS22HH_TRIGGER 42 43endchoice # LPS22HH_TRIGGER_MODE 44 45config LPS22HH_TRIGGER 46 bool 47 48config LPS22HH_THREAD_PRIORITY 49 int "Thread priority" 50 depends on LPS22HH_TRIGGER_OWN_THREAD 51 default 10 52 help 53 Priority of thread used by the driver to handle interrupts. 54 55config LPS22HH_THREAD_STACK_SIZE 56 int "Thread stack size" 57 depends on LPS22HH_TRIGGER_OWN_THREAD 58 default 1024 59 help 60 Stack size of thread used by the driver to handle interrupts. 61 62endif # LPS22HH 63