Skip to content

Commit cbe93db

Browse files
committed
This library written by STMicroelectronics is dedicated to vl6180 time of flight 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. Origin: ST Microelectronics License: BSD-3-Clause URL: http://www.st.com/en/embedded-software/stsw-img011.html Purpose: ST Microelectonics official API to use vl6180 sensor. Maintained-by: External Signed-off-by: Kamil Serwus <kserwus@gmail.com>
1 parent cccbc24 commit cbe93db

File tree

6 files changed

+4145
-0
lines changed

6 files changed

+4145
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_core_support.c)
3131
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_register_funcs.c)
3232
endif()
3333

34+
if(CONFIG_VL6180X)
35+
zephyr_include_directories(sensor/vl6180x/api/core/inc
36+
${PROJECT_SOURCE_DIR}/drivers/sensor/vl6180x)
37+
zephyr_library_sources(sensor/vl6180x/api/core/src/vl6180_api.c)
38+
endif()
39+
3440
if(CONFIG_AUDIO_MPXXDTYY)
3541
zephyr_include_directories(audio/microphone)
3642
zephyr_library_sources(audio/microphone/OpenPDMFilter.c)

sensor/vl6180x/README

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
VL6180
2+
######
3+
4+
Origin:
5+
ST Microelectronics
6+
https://www.st.com/en/embedded-software/stsw-img011.html
7+
8+
Status:
9+
version 1.4.0
10+
11+
Purpose:
12+
ST Microelectonics official API to use vl6180 sensor.
13+
14+
Description:
15+
This library written by STMicroelectronics is dedicated to vl6180 time of flight sensor.
16+
Instead of providing a full description of the registers, ST decided to provide a C library to drive this sensor.
17+
18+
This library is called from the vl6180 driver and is kept transparent for user.
19+
User is calling a standard Zephyr driver and then, the driver makes some calls to this library.
20+
21+
In order to fit with Zephyr rules and simplify version updates, we have done a minimum of modifications :
22+
- keep only API directory
23+
(remove documentation and samples, see ST website for this)
24+
- rename Api to api
25+
- customize api/platform to fit in Zephyr (mainly for I2C access)
26+
vl53l0x_platform.c has been moved to Zephyr drivers directory.
27+
28+
In order to use this library, you have to :
29+
* define CONFIG_HAS_STLIB and CONFIG_VL53L0X
30+
* use 1 in prj.conf (needed for abs function)
31+
* include vl53l0x_api.h and vl53l0x_platform.h in the driver .h
32+
33+
Dependencies:
34+
This package depends on Zephyr I2C implementation and is linked statically.
35+
This library will be used by a standard Zephyr driver.
36+
37+
URL:
38+
https://www.st.com/en/embedded-software/stsw-img011.html
39+
40+
commit:
41+
version 1.4.0
42+
43+
Maintained-by:
44+
External
45+
46+
License:
47+
BSD-3-Clause
48+
49+
License Link:
50+
https://www.st.com/en/embedded-software/stsw-img011.html
51+
52+
53+

0 commit comments

Comments
 (0)