zephyr/drivers/sensor/vl53l0x/Kconfig

46 lines
1.1 KiB
Plaintext

# Kconfig - VL53L0X time of flight sensor configuration options
#
# Copyright (c) 2017 STMicroelectronics
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig VL53L0X
bool "VL53L0X time of flight sensor"
depends on I2C && HAS_DTS_I2C
select HAS_STLIB
help
Enable driver for VL53L0X I2C-based time of flight sensor.
if VL53L0X
config VL53L0X_XSHUT_CONTROL_ENABLE
bool "Enable XSHUT pin control"
help
Enable it if XSHUT pin is controlled by host.
config VL53L0X_XSHUT_GPIO_DEV_NAME
string "GPIO device"
default "GPIO_6"
depends on VL53L0X_XSHUT_CONTROL_ENABLE
help
The device name of the GPIO device to which the VL53L0X xshut pin
is connected.
config VL53L0X_XSHUT_GPIO_PIN_NUM
int "Interrupt GPIO pin number"
default 6
depends on VL53L0X_XSHUT_CONTROL_ENABLE
help
The number of the GPIO on which the xshut signal from the VL53L0X
is connected.
config VL53L0X_PROXIMITY_THRESHOLD
int "Proximity threshold in millimeters"
default 100
help
Threshold used for proximity detection when sensor is used with SENSOR_CHAN_PROX.
endif # VL53L0X