1# VCNL4040 Proximity and Ambient Light Sensor configuration options
2
3# Copyright (c) 2020 Richard Osterloh
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig VCNL4040
7	bool "VCNL4040 Proximity and Ambient Light Sensor"
8	default y
9	depends on DT_HAS_VISHAY_VCNL4040_ENABLED
10	select I2C
11	help
12	  Enable driver for VCNL4040 sensors.
13
14if VCNL4040
15
16config VCNL4040_ENABLE_ALS
17	bool "Ambient light sensor"
18	help
19	  Enable Ambient Light Sense (ALS).
20
21config VCNL4040_TRIGGER
22	bool
23
24choice
25	prompt "Trigger mode"
26	default VCNL4040_TRIGGER_NONE
27	help
28	  Specify the type of triggering to be used by the driver.
29
30config VCNL4040_TRIGGER_NONE
31	bool "No trigger"
32
33config VCNL4040_TRIGGER_GLOBAL_THREAD
34	bool "Use global thread"
35	depends on GPIO
36	select VCNL4040_TRIGGER
37
38config VCNL4040_TRIGGER_OWN_THREAD
39	bool "Use own thread"
40	depends on GPIO
41	select VCNL4040_TRIGGER
42
43endchoice
44
45config VCNL4040_THREAD_PRIORITY
46	int "Thread priority"
47	depends on VCNL4040_TRIGGER_OWN_THREAD
48	default 10
49	help
50	  Priority of thread used by the driver to handle interrupts.
51
52config VCNL4040_THREAD_STACK_SIZE
53	int "Thread stack size"
54	depends on VCNL4040_TRIGGER_OWN_THREAD
55	default 1024
56	help
57	  Stack size of thread used by the driver to handle interrupts.
58
59endif # VCNL4040
60