31 lines
765 B
Plaintext
31 lines
765 B
Plaintext
|
# ST Microelectronics LIS2DE12 3-axis accelerometer sensor driver
|
||
|
|
||
|
# Copyright (c) 2024 STMicroelectronics
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
menuconfig LIS2DE12
|
||
|
bool "LIS2DE12 I2C/SPI smartxl Chip"
|
||
|
default y
|
||
|
depends on DT_HAS_ST_LIS2DE12_ENABLED
|
||
|
depends on ZEPHYR_HAL_ST_MODULE
|
||
|
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DE12),i2c)
|
||
|
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DE12),spi)
|
||
|
select HAS_STMEMSC
|
||
|
select USE_STDC_LIS2DE12
|
||
|
help
|
||
|
Enable driver for LIS2DE12 smartxl sensor.
|
||
|
|
||
|
if LIS2DE12
|
||
|
|
||
|
module = LIS2DE12
|
||
|
thread_priority = 10
|
||
|
thread_stack_size = 1024
|
||
|
source "drivers/sensor/Kconfig.trigger_template"
|
||
|
|
||
|
config LIS2DE12_ENABLE_TEMP
|
||
|
bool "Die temperature sensor"
|
||
|
help
|
||
|
Enable/disable die temperature sensor
|
||
|
|
||
|
endif # LIS2DE12
|