1# ST Microelectronics LIS2DUX12 3-axis accelerometer driver 2 3# Copyright (c) 2024 STMicroelectronics 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig LIS2DUX12 7 bool "LIS2DUX12 I2C/SPI accelerometer sensor driver" 8 default y 9 depends on DT_HAS_ST_LIS2DUX12_ENABLED || DT_HAS_ST_LIS2DUXS12_ENABLED 10 depends on ZEPHYR_HAL_ST_MODULE 11 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUX12),i2c) || \ 12 $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUXS12),i2c) 13 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUX12),spi) || \ 14 $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUXS12),spi) 15 select HAS_STMEMSC 16 select USE_STDC_LIS2DUX12 if DT_HAS_ST_LIS2DUX12_ENABLED 17 select USE_STDC_LIS2DUXS12 if DT_HAS_ST_LIS2DUXS12_ENABLED 18 help 19 Enable driver for LIS2DUX12 accelerometer sensor driver 20 21if LIS2DUX12 22 23module = LIS2DUX12 24thread_priority = 10 25thread_stack_size = 1024 26source "drivers/sensor/Kconfig.trigger_template" 27 28config LIS2DUX12_ENABLE_TEMP 29 bool "Temperature" 30 help 31 Enable/disable temperature 32 33endif # LIS2DUX12 34