zephyr/drivers/sensor/iis2dlpc/Kconfig
Armando Visconti e4f95863f9 drivers/sensor: iis2dlpc: Move trigger pulse Kconfig property into DT
Move iis2dlpc trigger pulse configurations from Kconfigs to Device Tree.
Moreover the dts properties have been renamed as 'tap', which sounds a
better name to immediately catch the feature behind it. Since tap
threshold cannot be zero, this value (which is the default in dts
binding) is used to enable/disable the device feature per each axis.
The event can be generated on INT1 only.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2021-01-18 09:21:00 -06:00

63 lines
1.3 KiB
Plaintext

# ST Microelectronics IIS2DLPC 3-axis accelerometer driver
# Copyright (c) 2020 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
menuconfig IIS2DLPC
bool "IIS2DLPC I2C/SPI accelerometer sensor driver"
depends on I2C || SPI
select HAS_STMEMSC
select USE_STDC_IIS2DLPC
help
Enable driver for IIS2DLPC accelerometer sensor driver
if IIS2DLPC
choice IIS2DLPC_TRIGGER_MODE
prompt "Trigger mode"
help
Specify the type of triggering to be used by the driver.
config IIS2DLPC_TRIGGER_NONE
bool "No trigger"
config IIS2DLPC_TRIGGER_GLOBAL_THREAD
bool "Use global thread"
depends on GPIO
select IIS2DLPC_TRIGGER
config IIS2DLPC_TRIGGER_OWN_THREAD
bool "Use own thread"
depends on GPIO
select IIS2DLPC_TRIGGER
endchoice
config IIS2DLPC_TRIGGER
bool
if IIS2DLPC_TRIGGER
config IIS2DLPC_THREAD_PRIORITY
int "Thread priority"
depends on IIS2DLPC_TRIGGER_OWN_THREAD
default 10
help
Priority of thread used by the driver to handle interrupts.
config IIS2DLPC_THREAD_STACK_SIZE
int "Thread stack size"
depends on IIS2DLPC_TRIGGER_OWN_THREAD
default 1024
help
Stack size of thread used by the driver to handle interrupts.
config IIS2DLPC_TAP
bool "Tap and Tap-Tap detection"
help
Enable tap (single/double) detection
endif # IIS2DLPC_TRIGGER
endif # IIS2DLPC