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 select LPS22HH_TRIGGER 35 36config LPS22HH_TRIGGER_OWN_THREAD 37 bool "Use own thread" 38 depends on GPIO 39 select LPS22HH_TRIGGER 40 41endchoice # LPS22HH_TRIGGER_MODE 42 43config LPS22HH_TRIGGER 44 bool 45 46config LPS22HH_THREAD_PRIORITY 47 int "Thread priority" 48 depends on LPS22HH_TRIGGER_OWN_THREAD 49 default 10 50 help 51 Priority of thread used by the driver to handle interrupts. 52 53config LPS22HH_THREAD_STACK_SIZE 54 int "Thread stack size" 55 depends on LPS22HH_TRIGGER_OWN_THREAD 56 default 1024 57 help 58 Stack size of thread used by the driver to handle interrupts. 59 60endif # LPS22HH 61