1# ST Microelectronics LIS2DS12 3-axis accelerometer driver 2 3# Copyright (c) 2019 STMicroelectronics 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig LIS2DS12 7 bool "LIS2DS12 I2C/SPI accelerometer sensor driver" 8 default y 9 depends on DT_HAS_ST_LIS2DS12_ENABLED 10 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DS12),i2c) 11 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DS12),spi) 12 select HAS_STMEMSC 13 select USE_STDC_LIS2DS12 14 help 15 Enable driver for LIS2DS12 accelerometer sensor driver 16 17if LIS2DS12 18 19choice LIS2DS12_TRIGGER_MODE 20 prompt "Trigger mode" 21 help 22 Specify the type of triggering to be used by the driver. 23 24config LIS2DS12_TRIGGER_NONE 25 bool "No trigger" 26 27config LIS2DS12_TRIGGER_GLOBAL_THREAD 28 bool "Use global thread" 29 depends on GPIO 30 select LIS2DS12_TRIGGER 31 32config LIS2DS12_TRIGGER_OWN_THREAD 33 bool "Use own thread" 34 depends on GPIO 35 select LIS2DS12_TRIGGER 36 37endchoice 38 39config LIS2DS12_TRIGGER 40 bool 41 42config LIS2DS12_THREAD_PRIORITY 43 int "Thread priority" 44 depends on LIS2DS12_TRIGGER_OWN_THREAD 45 default 10 46 help 47 Priority of thread used by the driver to handle interrupts. 48 49config LIS2DS12_THREAD_STACK_SIZE 50 int "Thread stack size" 51 depends on LIS2DS12_TRIGGER_OWN_THREAD 52 default 1024 53 help 54 Stack size of thread used by the driver to handle interrupts. 55 56config LIS2DS12_ENABLE_TEMP 57 bool "Temperature" 58 help 59 Enable/disable temperature 60 61endif # LIS2DS12 62