# TSL2540 Ambient Light Sensor configuration options # Copyright (c) 2022 T-Mobile USA, Inc. # SPDX-License-Identifier: Apache-2.0 menuconfig TSL2540 bool "TSL2540 Ambient Light Sensor" default y depends on DT_HAS_AMS_TSL2540_ENABLED select I2C help Enable driver for TSL2540 sensors. if TSL2540 config TSL2540_TRIGGER bool choice prompt "Trigger mode" default TSL2540_TRIGGER_NONE help Specify the type of triggering to be used by the driver. config TSL2540_TRIGGER_NONE bool "No trigger" config TSL2540_TRIGGER_GLOBAL_THREAD bool "Use global thread" depends on GPIO depends on $(dt_compat_any_has_prop,$(DT_COMPAT_AMS_TSL2540),int-gpios) select TSL2540_TRIGGER config TSL2540_TRIGGER_OWN_THREAD bool "Use own thread" depends on GPIO depends on $(dt_compat_any_has_prop,$(DT_COMPAT_AMS_TSL2540),int-gpios) select TSL2540_TRIGGER endchoice config TSL2540_THREAD_PRIORITY int "Thread priority" depends on TSL2540_TRIGGER_OWN_THREAD default 10 help Priority of thread used by the driver to handle interrupts. config TSL2540_THREAD_STACK_SIZE int "Thread stack size" depends on TSL2540_TRIGGER_OWN_THREAD default 1024 help Stack size of thread used by the driver to handle interrupts. endif # TSL2540