|
| 1 | +# Copyright (c) 2025 Würth Elektronik eiSos GmbH & Co. KG |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +menuconfig WSEN_ITDS_2533020201601 |
| 5 | + bool "WSEN-ITDS-2533020201601 3-axis acceleration sensor" |
| 6 | + default y |
| 7 | + depends on DT_HAS_WE_WSEN_ITDS_2533020201601_ENABLED |
| 8 | + select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_ITDS_2533020201601),i2c) |
| 9 | + select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_ITDS_2533020201601),spi) |
| 10 | + select HAS_WESENSORS |
| 11 | + help |
| 12 | + Enable driver for the WSEN-ITDS I2C/SPI-based acceleration sensor with integrated |
| 13 | + temperature sensor. |
| 14 | + |
| 15 | +if WSEN_ITDS_2533020201601 |
| 16 | + |
| 17 | +choice WSEN_ITDS_2533020201601_TRIGGER_MODE |
| 18 | + prompt "Trigger mode" |
| 19 | + default WSEN_ITDS_2533020201601_TRIGGER_NONE |
| 20 | + help |
| 21 | + Specify the type of triggering to be used by the driver. |
| 22 | + |
| 23 | +config WSEN_ITDS_2533020201601_TRIGGER_NONE |
| 24 | + bool "No trigger" |
| 25 | + |
| 26 | +config WSEN_ITDS_2533020201601_TRIGGER_GLOBAL_THREAD |
| 27 | + bool "Use global thread" |
| 28 | + depends on GPIO |
| 29 | + select WSEN_ITDS_2533020201601_TRIGGER |
| 30 | + |
| 31 | +config WSEN_ITDS_2533020201601_TRIGGER_OWN_THREAD |
| 32 | + bool "Use own thread" |
| 33 | + depends on GPIO |
| 34 | + select WSEN_ITDS_2533020201601_TRIGGER |
| 35 | + |
| 36 | +endchoice # WSEN_ITDS_2533020201601_TRIGGER_MODE |
| 37 | + |
| 38 | +config WSEN_ITDS_2533020201601_TRIGGER |
| 39 | + bool |
| 40 | + |
| 41 | +config WSEN_ITDS_2533020201601_EVENTS |
| 42 | + bool |
| 43 | + |
| 44 | +config WSEN_ITDS_2533020201601_THREAD_PRIORITY |
| 45 | + int "Thread priority" |
| 46 | + depends on WSEN_ITDS_2533020201601_TRIGGER_OWN_THREAD |
| 47 | + default 10 |
| 48 | + help |
| 49 | + Priority of thread used by the driver to handle interrupts. |
| 50 | + |
| 51 | +config WSEN_ITDS_2533020201601_THREAD_STACK_SIZE |
| 52 | + int "Thread stack size" |
| 53 | + depends on WSEN_ITDS_2533020201601_TRIGGER_OWN_THREAD |
| 54 | + default 1024 |
| 55 | + help |
| 56 | + Stack size of thread used by the driver to handle interrupts. |
| 57 | + |
| 58 | +config WSEN_ITDS_2533020201601_TAP |
| 59 | + bool "Tap and double tap detection" |
| 60 | + depends on WSEN_ITDS_2533020201601_TRIGGER |
| 61 | + select WSEN_ITDS_2533020201601_EVENTS |
| 62 | + help |
| 63 | + Enable tap (single/double) detection |
| 64 | + Note that the minimum ODR required for using the tap recognition functionality is 400 Hz. |
| 65 | + |
| 66 | +config WSEN_ITDS_2533020201601_FREEFALL |
| 67 | + bool "Free-fall detection" |
| 68 | + depends on WSEN_ITDS_2533020201601_TRIGGER |
| 69 | + select WSEN_ITDS_2533020201601_EVENTS |
| 70 | + help |
| 71 | + Enable free-fall detection |
| 72 | + |
| 73 | +config WSEN_ITDS_2533020201601_DELTA |
| 74 | + bool "Wake-up detection (SENSOR_TRIG_DELTA)" |
| 75 | + depends on WSEN_ITDS_2533020201601_TRIGGER |
| 76 | + select WSEN_ITDS_2533020201601_EVENTS |
| 77 | + help |
| 78 | + Enable wake-up detection (SENSOR_TRIG_DELTA) |
| 79 | + |
| 80 | +endif # WSEN_ITDS_2533020201601 |
0 commit comments