2017-06-12 13:55:00 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Intel Corporation
|
2018-09-13 19:52:27 +08:00
|
|
|
# Copyright (c) 2018 Phytec Messtechnik GmbH
|
2017-06-12 13:55:00 +08:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig APDS9960
|
|
|
|
bool "APDS9960 Sensor"
|
2018-09-20 06:25:44 +08:00
|
|
|
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO
|
2017-06-12 13:55:00 +08:00
|
|
|
help
|
|
|
|
Enable driver for APDS9960 sensors.
|
|
|
|
|
2018-09-13 06:23:26 +08:00
|
|
|
if APDS9960
|
|
|
|
|
2018-09-13 20:08:41 +08:00
|
|
|
choice
|
|
|
|
prompt "Trigger mode"
|
|
|
|
default APDS9960_TRIGGER_NONE
|
|
|
|
help
|
|
|
|
Specify the type of triggering used by the driver.
|
|
|
|
|
|
|
|
config APDS9960_TRIGGER_NONE
|
|
|
|
bool "No trigger"
|
|
|
|
|
|
|
|
config APDS9960_TRIGGER_GLOBAL_THREAD
|
|
|
|
bool "Use global thread"
|
|
|
|
depends on GPIO
|
|
|
|
select APDS9960_TRIGGER
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config APDS9960_TRIGGER
|
|
|
|
bool
|
|
|
|
|
2018-09-13 06:23:26 +08:00
|
|
|
endif # APDS9960
|