Skip to content

Commit

Permalink
Update uld to v1.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
RJRP44 committed Dec 6, 2023
1 parent 34b8cd2 commit 05d098b
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 47 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# VL53L5CX library for ESP32

A vl53l5cx library for esp32 using the **esp-idf framework**. This library is based
on [ST's Ultra Lite Driver (ULD) for VL53L5CX](https://www.st.com/content/st_com/en/products/embedded-software/imaging-software/stsw-img023.html)
on [ST's Ultra Lite Driver (ULD) for VL53L5CX](https://www.st.com/content/st_com/en/products/embedded-software/imaging-software/stsw-img023.html) v1.3.10
. This library is just an adaptation of the ST's library for esp-32.

> **Warning**
Expand Down Expand Up @@ -43,7 +43,7 @@ So, you can use the [IDF Component Manager](https://docs.espressif.com/projects/
To add this component to your project, run:

```log
idf.py add-dependency "rjrp44/vl53l5cx^2.0.1"
idf.py add-dependency "rjrp44/vl53l5cx^2.0.2"
```


Expand Down
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2.0.1"
version: "2.0.2"
description: "A vl53l5cx library for esp32 using the esp-idf framework."
url: "https://github.com/RJRP44/VL53L5CX-Library"
repository: "https://github.com/RJRP44/VL53L5CX-Library"
Expand Down
11 changes: 2 additions & 9 deletions include/vl53l5cx_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L5CX_API_H_
#define VL53L5CX_API_H_

Expand All @@ -29,7 +25,7 @@ extern "C" {
* @brief Current driver version.
*/

#define VL53L5CX_API_REVISION "VL53L5CX_1.3.9"
#define VL53L5CX_API_REVISION "VL53L5CX_1.3.10"

/**
* @brief Default I2C address of VL53L5CX sensor. Can be changed using function
Expand Down Expand Up @@ -86,6 +82,7 @@ extern "C" {
#define VL53L5CX_STATUS_TIMEOUT_ERROR ((uint8_t) 1U)
#define VL53L5CX_STATUS_CORRUPTED_FRAME ((uint8_t) 2U)
#define VL53L5CX_STATUS_CRC_CSUM_FAILED ((uint8_t) 3U)
#define VL53L5CX_STATUS_XTALK_FAILED ((uint8_t) 4U)
#define VL53L5CX_MCU_ERROR ((uint8_t) 66U)
#define VL53L5CX_STATUS_INVALID_PARAM ((uint8_t) 127U)
#define VL53L5CX_STATUS_ERROR ((uint8_t) 255U)
Expand Down Expand Up @@ -719,7 +716,3 @@ uint8_t vl53l5cx_dci_replace_data(
uint16_t new_data_pos);

#endif //VL53L5CX_API_H_

#ifdef __cplusplus
}
#endif
7 changes: 0 additions & 7 deletions include/vl53l5cx_buffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L5CX_BUFFERS_H_
#define VL53L5CX_BUFFERS_H_
Expand Down Expand Up @@ -22012,7 +22009,3 @@ const uint8_t VL53L5CX_GET_NVM_CMD[] = {

#endif /* VL53L5CX_BUFFERS_H_ */


#ifdef __cplusplus
}
#endif
8 changes: 0 additions & 8 deletions include/vl53l5cx_plugin_detection_thresholds.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L5CX_PLUGIN_DETECTION_THRESHOLDS_H_
#define VL53L5CX_PLUGIN_DETECTION_THRESHOLDS_H_

Expand Down Expand Up @@ -148,7 +144,3 @@ uint8_t vl53l5cx_set_detection_thresholds(
VL53L5CX_DetectionThresholds *p_thresholds);

#endif /* VL53L5CX_PLUGIN_DETECTION_THRESHOLDS_H_ */

#ifdef __cplusplus
}
#endif
8 changes: 0 additions & 8 deletions include/vl53l5cx_plugin_motion_indicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L5CX_PLUGIN_MOTION_INDICATOR_H_
#define VL53L5CX_PLUGIN_MOTION_INDICATOR_H_

Expand Down Expand Up @@ -98,7 +94,3 @@ uint8_t vl53l5cx_motion_indicator_set_resolution(
uint8_t resolution);

#endif /* VL53L5CX_PLUGIN_MOTION_INDICATOR_H_ */

#ifdef __cplusplus
}
#endif
8 changes: 0 additions & 8 deletions include/vl53l5cx_plugin_xtalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L5CX_PLUGIN_XTALK_H_
#define VL53L5CX_PLUGIN_XTALK_H_

Expand Down Expand Up @@ -393,7 +389,3 @@ static const uint8_t VL53L5CX_CALIBRATE_XTALK[] = {
};

#endif /* VL53L5CX_PLUGIN_XTALK_H_ */

#ifdef __cplusplus
}
#endif
2 changes: 1 addition & 1 deletion vl53l5cx_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ uint8_t vl53l5cx_stop_ranging(
status |= RdMulti(&(p_dev->platform),
0x2FFC, (uint8_t*)&auto_stop_flag, 4);
if((auto_stop_flag != (uint32_t)0x4FF)
&& (p_dev->is_auto_stop_enabled == (uint8_t)1))
&& (p_dev->is_auto_stop_enabled == (uint8_t)0))
{
status |= WrByte(&(p_dev->platform), 0x7fff, 0x00);

Expand Down
2 changes: 1 addition & 1 deletion vl53l5cx_plugin_detection_thresholds.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
******************************************************************************
*/

#include "include/vl53l5cx_plugin_detection_thresholds.h"
#include "vl53l5cx_plugin_detection_thresholds.h"

uint8_t vl53l5cx_get_detection_thresholds_enable(
VL53L5CX_Configuration *p_dev,
Expand Down
2 changes: 1 addition & 1 deletion vl53l5cx_plugin_motion_indicator.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#include <math.h>
#include "include/vl53l5cx_plugin_motion_indicator.h"
#include "vl53l5cx_plugin_motion_indicator.h"

uint8_t vl53l5cx_motion_indicator_init(
VL53L5CX_Configuration *p_dev,
Expand Down
3 changes: 2 additions & 1 deletion vl53l5cx_plugin_xtalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
******************************************************************************
*/

#include "include/vl53l5cx_plugin_xtalk.h"
#include "vl53l5cx_plugin_xtalk.h"

/*
* Inner function, not available outside this file. This function is used to
Expand Down Expand Up @@ -233,6 +233,7 @@ uint8_t vl53l5cx_calibrate_xtalk(
(void)memcpy(p_dev->xtalk_data,
p_dev->default_xtalk,
VL53L5CX_XTALK_BUFFER_SIZE);
status |= VL53L5CX_STATUS_XTALK_FAILED;
}
continue_loop = (uint8_t)0;
}
Expand Down

0 comments on commit 05d098b

Please sign in to comment.