1# ST Microelectronics IIS328DQ 3-axis accelerometer driver
2
3# Copyright (c) 2020 STMicroelectronics
4# Copyright (c) 2024 SILA Embedded Solutions GmbH
5# SPDX-License-Identifier: Apache-2.0
6
7menuconfig IIS328DQ
8	bool "IIS328DQ I2C/SPI accelerometer sensor driver"
9	default y
10	depends on DT_HAS_ST_IIS328DQ_ENABLED
11	depends on ZEPHYR_HAL_ST_MODULE
12	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS328DQ),i2c)
13	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS328DQ),spi)
14	select HAS_STMEMSC
15	select USE_STDC_IIS328DQ
16	help
17	  Enable driver for IIS328DQ accelerometer sensor driver
18
19if IIS328DQ
20
21module = IIS328DQ
22thread_priority = 10
23thread_stack_size = 1024
24source "drivers/sensor/Kconfig.trigger_template"
25
26if IIS328DQ_TRIGGER
27
28config IIS328DQ_THRESHOLD
29	bool "Threshold detection"
30	help
31	  Enable threshold interrupts
32
33endif # IIS328DQ_TRIGGER
34
35endif # IIS328DQ
36