1# Copyright (c) 2023 Würth Elektronik eiSos GmbH & Co. KG
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig WSEN_PADS
5	bool "WSEN-PADS absolute pressure and temperature sensor"
6	default y
7	depends on DT_HAS_WE_WSEN_PADS_ENABLED
8	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_PADS),i2c)
9	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_PADS),spi)
10	select HAS_WESENSORS
11	help
12	  Enable driver for the WSEN-PADS I2C/SPI-based absolute pressure sensor with integrated
13	  temperature sensor.
14
15if WSEN_PADS
16
17choice WSEN_PADS_TRIGGER_MODE
18	prompt "Trigger mode"
19	default WSEN_PADS_TRIGGER_NONE
20	help
21	  Specify the type of triggering to be used by the driver.
22
23config WSEN_PADS_TRIGGER_NONE
24	bool "No trigger"
25
26config WSEN_PADS_TRIGGER_GLOBAL_THREAD
27	bool "Use global thread"
28	depends on GPIO
29	select WSEN_PADS_TRIGGER
30
31config WSEN_PADS_TRIGGER_OWN_THREAD
32	bool "Use own thread"
33	depends on GPIO
34	select WSEN_PADS_TRIGGER
35
36endchoice # WSEN_PADS_TRIGGER_MODE
37
38config WSEN_PADS_TRIGGER
39	bool
40
41config WSEN_PADS_THREAD_PRIORITY
42	int "Thread priority"
43	depends on WSEN_PADS_TRIGGER_OWN_THREAD
44	default 10
45	help
46	  Priority of thread used by the driver to handle interrupts.
47
48config WSEN_PADS_THREAD_STACK_SIZE
49	int "Thread stack size"
50	depends on WSEN_PADS_TRIGGER_OWN_THREAD
51	default 1024
52	help
53	  Stack size of thread used by the driver to handle interrupts.
54
55endif # WSEN_PADS
56