Skip to content
Open
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
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_core_support.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_register_funcs.c)
endif()

if(CONFIG_VL6180X)
zephyr_include_directories(sensor/vl6180x/api/core/inc
${PROJECT_SOURCE_DIR}/drivers/sensor/vl6180x)
zephyr_library_sources(sensor/vl6180x/api/core/src/vl6180_api.c)
endif()

if(CONFIG_AUDIO_MPXXDTYY)
zephyr_include_directories(audio/microphone)
zephyr_library_sources(audio/microphone/OpenPDMFilter.c)
Expand Down
54 changes: 54 additions & 0 deletions sensor/vl6180x/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
VL6180
######

Origin:
ST Microelectronics
https://www.st.com/en/embedded-software/stsw-img011.html

Status:
version 1.4.0

Purpose:
ST Microelectonics official API to use vl6180 sensor.

Description:
This library written by STMicroelectronics is dedicated to vl6180 time of flight sensor.
Instead of providing a full description of the registers, ST decided to provide a C library to drive this sensor.

This library is called from the vl6180 driver and is kept transparent for user.
User is calling a standard Zephyr driver and then, the driver makes some calls to this library.

In order to fit with Zephyr rules and simplify version updates, we have done a minimum of modifications :
- keep only API directory
(remove documentation and samples, see ST website for this)
- rename Api to api
- customize api/platform to fit in Zephyr (mainly for I2C access)
vl53l0x_platform.c has been moved to Zephyr drivers directory.

In order to use this library, you have to :
* define CONFIG_HAS_STLIB and CONFIG_VL53L0X
* use 1 in prj.conf (needed for abs function)
* include vl53l0x_api.h and vl53l0x_platform.h in the driver .h

Dependencies:
This package depends on Zephyr I2C implementation and is linked statically.
This library will be used by a standard Zephyr driver.

URL:
https://www.st.com/en/embedded-software/stsw-img011.html

commit:
version 1.4.0

Maintained-by:
External

License:
BSD-3-Clause

License Link:
https://www.st.com/en/embedded-software/stsw-img011.html

Patch List:
* Fix infinity loop at read measurments.

Loading