Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ add_subdirectory_ifdef(CONFIG_TMP112 tmp112)
add_subdirectory_ifdef(CONFIG_TMP116 tmp116)
add_subdirectory_ifdef(CONFIG_VCNL4040 vcnl4040)
add_subdirectory_ifdef(CONFIG_VL53L0X vl53l0x)
add_subdirectory_ifdef(CONFIG_VL53L1X vl53l1x)
add_subdirectory_ifdef(CONFIG_TEMP_KINETIS nxp_kinetis_temp)
add_subdirectory_ifdef(CONFIG_TACH_XEC mchp_tach_xec)
add_subdirectory_ifdef(CONFIG_WSEN_HIDS wsen_hids)
Expand Down
2 changes: 2 additions & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ source "drivers/sensor/vcnl4040/Kconfig"

source "drivers/sensor/vl53l0x/Kconfig"

source "drivers/sensor/vl53l1x/Kconfig"

source "drivers/sensor/nxp_kinetis_temp/Kconfig"

source "drivers/sensor/wsen_hids/Kconfig"
Expand Down
8 changes: 8 additions & 0 deletions drivers/sensor/vl53l1x/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
vl53l1.c
vl53l1_platform.c
)
32 changes: 32 additions & 0 deletions drivers/sensor/vl53l1x/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# VL53L0X time of flight sensor configuration options

# Copyright (c) 2023 Prosaris Solutions Inc.
# SPDX-License-Identifier: Apache-2.0

menuconfig VL53L1X
bool "VL53L1X time of flight sensor"
default y
depends on DT_HAS_ST_VL53L1X_ENABLED
select I2C
select HAS_STLIB
help
Enable driver for VL53L1X I2C-based time of flight sensor.

if VL53L1X

config VL53L1X_INTERRUPT_MODE
bool "Use interrupt mode for VL53L1X time of flight sensor"
default y
depends on GPIO
help
Enable interrupt mode for VL53L1X time of flight sensor. Otherwise,
the driver will use the polling method.

config VL53L1X_XSHUT
bool "Use xshut pin on VL53L1X time of flight sensor"
depends on GPIO
help
Enable to use the xshut pin on the VL53L1X. If not, the pin should be
connected to VDD.

endif # VL53L1X
Loading