1# ST Microelectronics LIS2DW12 3-axis accelerometer driver 2 3# Copyright (c) 2019 STMicroelectronics 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig LIS2DW12 7 bool "LIS2DW12 I2C/SPI accelerometer sensor driver" 8 depends on I2C || SPI 9 select HAS_STMEMSC 10 select USE_STDC_LIS2DW12 11 help 12 Enable driver for LIS2DW12 accelerometer sensor driver 13 14if LIS2DW12 15 16choice LIS2DW12_TRIGGER_MODE 17 prompt "Trigger mode" 18 help 19 Specify the type of triggering to be used by the driver. 20 21config LIS2DW12_TRIGGER_NONE 22 bool "No trigger" 23 24config LIS2DW12_TRIGGER_GLOBAL_THREAD 25 bool "Use global thread" 26 depends on GPIO 27 select LIS2DW12_TRIGGER 28 29config LIS2DW12_TRIGGER_OWN_THREAD 30 bool "Use own thread" 31 depends on GPIO 32 select LIS2DW12_TRIGGER 33 34endchoice 35 36config LIS2DW12_TRIGGER 37 bool 38 39if LIS2DW12_TRIGGER 40 41config LIS2DW12_THREAD_PRIORITY 42 int "Thread priority" 43 depends on LIS2DW12_TRIGGER_OWN_THREAD 44 default 10 45 help 46 Priority of thread used by the driver to handle interrupts. 47 48config LIS2DW12_THREAD_STACK_SIZE 49 int "Thread stack size" 50 depends on LIS2DW12_TRIGGER_OWN_THREAD 51 default 1024 52 help 53 Stack size of thread used by the driver to handle interrupts. 54 55config LIS2DW12_TAP 56 bool "Tap and Tap-Tap detection" 57 help 58 Enable tap (single/double) detection 59 60endif # LIS2DW12_TRIGGER 61 62endif # LIS2DW12 63