mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-05 01:32:38 +00:00
The generic library provided by ST in ext/hal/st/lib/sensor/vl53l0x needs to be adapted to the platform. In this case, the main modification is the way to use I2C. This is now using the Zephyr I2C API. Signed-off-by: Vincent Veron <vincent.veron@st.com>
22 lines
620 B
CMake
22 lines
620 B
CMake
# Makefile - STLIB SDK
|
|
#
|
|
# Copyright (c) 2016 Linaro Limited
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(CONFIG_HAS_STLIB)
|
|
if(CONFIG_VL53L0X)
|
|
zephyr_include_directories(
|
|
sensor/vl53l0x/api/core/inc
|
|
${PROJECT_SOURCE_DIR}/drivers/sensor/vl53l0x
|
|
)
|
|
|
|
zephyr_sources(sensor/vl53l0x/api/core/src/vl53l0x_api.c)
|
|
zephyr_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_ranging.c)
|
|
zephyr_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_calibration.c)
|
|
zephyr_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_core.c)
|
|
zephyr_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_strings.c)
|
|
endif()
|
|
endif()
|
|
|