The LPS22DF is an ultracompact, piezoresistive, absolute pressure sensor that functions as a digital output barometer. The LPS22DF provides lower power consumption, achieving lower pressure noise than its predecessor. This driver is based on stmemsc HAL i/f v2.3 https://www.st.com/en/datasheet/lps22df.pdf Signed-off-by: Armando Visconti <armando.visconti@st.com>
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
# ST Microelectronics LPS22DF pressure and temperature sensor
|
|
|
|
# Copyright (c) 2023 STMicroelectronics
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig LPS22DF
|
|
bool "LPS22DF pressure and temperature"
|
|
default y
|
|
depends on DT_HAS_ST_LPS22DF_ENABLED
|
|
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22DF),i2c)
|
|
select I3C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22DF),i3c)
|
|
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22DF),spi)
|
|
select HAS_STMEMSC
|
|
select USE_STDC_LPS22DF
|
|
help
|
|
Enable driver for LPS22DF I2C-based pressure and temperature
|
|
sensor.
|
|
|
|
if LPS22DF
|
|
|
|
choice LPS22DF_TRIGGER_MODE
|
|
prompt "Trigger mode"
|
|
default LPS22DF_TRIGGER_GLOBAL_THREAD
|
|
help
|
|
Specify the type of triggering to be used by the driver.
|
|
|
|
config LPS22DF_TRIGGER_NONE
|
|
bool "No trigger"
|
|
|
|
config LPS22DF_TRIGGER_GLOBAL_THREAD
|
|
bool "Use global thread"
|
|
depends on GPIO
|
|
select LPS22DF_TRIGGER
|
|
|
|
config LPS22DF_TRIGGER_OWN_THREAD
|
|
bool "Use own thread"
|
|
depends on GPIO
|
|
select LPS22DF_TRIGGER
|
|
|
|
endchoice # LPS22DF_TRIGGER_MODE
|
|
|
|
config LPS22DF_TRIGGER
|
|
bool
|
|
|
|
config LPS22DF_THREAD_PRIORITY
|
|
int "Thread priority"
|
|
depends on LPS22DF_TRIGGER_OWN_THREAD
|
|
default 10
|
|
help
|
|
Priority of thread used by the driver to handle interrupts.
|
|
|
|
config LPS22DF_THREAD_STACK_SIZE
|
|
int "Thread stack size"
|
|
depends on LPS22DF_TRIGGER_OWN_THREAD
|
|
default 1024
|
|
help
|
|
Stack size of thread used by the driver to handle interrupts.
|
|
|
|
endif # LPS22DF
|