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 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22HH),i2c) 11 select I3C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22HH),i3c) 12 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22HH),spi) 13 select HAS_STMEMSC 14 select USE_STDC_LPS22HH 15 help 16 Enable driver for LPS22HH I2C-based pressure and temperature 17 sensor. 18 19if LPS22HH 20 21choice LPS22HH_TRIGGER_MODE 22 prompt "Trigger mode" 23 default LPS22HH_TRIGGER_GLOBAL_THREAD 24 help 25 Specify the type of triggering to be used by the driver. 26 27config LPS22HH_TRIGGER_NONE 28 bool "No trigger" 29 30config LPS22HH_TRIGGER_GLOBAL_THREAD 31 bool "Use global thread" 32 depends on GPIO 33 select LPS22HH_TRIGGER 34 35config LPS22HH_TRIGGER_OWN_THREAD 36 bool "Use own thread" 37 depends on GPIO 38 select LPS22HH_TRIGGER 39 40endchoice # LPS22HH_TRIGGER_MODE 41 42config LPS22HH_TRIGGER 43 bool 44 45config LPS22HH_THREAD_PRIORITY 46 int "Thread priority" 47 depends on LPS22HH_TRIGGER_OWN_THREAD 48 default 10 49 help 50 Priority of thread used by the driver to handle interrupts. 51 52config LPS22HH_THREAD_STACK_SIZE 53 int "Thread stack size" 54 depends on LPS22HH_TRIGGER_OWN_THREAD 55 default 1024 56 help 57 Stack size of thread used by the driver to handle interrupts. 58 59endif # LPS22HH 60