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 depends on ZEPHYR_HAL_ST_MODULE 11 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DS12),i2c) 12 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DS12),spi) 13 select HAS_STMEMSC 14 select USE_STDC_LIS2DS12 15 help 16 Enable driver for LIS2DS12 accelerometer sensor driver 17 18if LIS2DS12 19 20choice LIS2DS12_TRIGGER_MODE 21 prompt "Trigger mode" 22 help 23 Specify the type of triggering to be used by the driver. 24 25config LIS2DS12_TRIGGER_NONE 26 bool "No trigger" 27 28config LIS2DS12_TRIGGER_GLOBAL_THREAD 29 bool "Use global thread" 30 depends on GPIO 31 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ST_LIS2DS12),irq-gpios) 32 select LIS2DS12_TRIGGER 33 34config LIS2DS12_TRIGGER_OWN_THREAD 35 bool "Use own thread" 36 depends on GPIO 37 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ST_LIS2DS12),irq-gpios) 38 select LIS2DS12_TRIGGER 39 40endchoice 41 42config LIS2DS12_TRIGGER 43 bool 44 45config LIS2DS12_THREAD_PRIORITY 46 int "Thread priority" 47 depends on LIS2DS12_TRIGGER_OWN_THREAD 48 default 10 49 help 50 Priority of thread used by the driver to handle interrupts. 51 52config LIS2DS12_THREAD_STACK_SIZE 53 int "Thread stack size" 54 depends on LIS2DS12_TRIGGER_OWN_THREAD 55 default 1024 56 help 57 Stack size of thread used by the driver to handle interrupts. 58 59config LIS2DS12_ENABLE_TEMP 60 bool "Temperature" 61 help 62 Enable/disable temperature 63 64endif # LIS2DS12 65