Skip to content

Commit 2482080

Browse files
committed
Rename some files to align to VL53L7CX code
1 parent 704461d commit 2482080

8 files changed

+23
-23
lines changed

src/vl53l8cx.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include "Arduino.h"
4444
#include "Wire.h"
4545
#include "SPI.h"
46-
#include "platform.h"
46+
#include "vl53l8cx_platform.h"
4747
#include "vl53l8cx_api.h"
4848
#include "vl53l8cx_plugin_detection_thresholds.h"
4949
#include "vl53l8cx_plugin_motion_indicator.h"

src/vl53l8cx_api.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" {
2323

2424

2525

26-
#include "platform.h"
26+
#include "vl53l8cx_platform.h"
2727

2828
/**
2929
* @brief Current driver version.
@@ -274,7 +274,7 @@ extern "C" {
274274
*/
275275

276276
typedef struct {
277-
/* Platform, filled by customer into the 'platform.h' file */
277+
/* Platform, filled by customer into the 'vl53l8cx_platform.h' file */
278278
VL53L8CX_Platform platform;
279279
/* Results streamcount, value auto-incremented at each range */
280280
uint8_t streamcount;

src/vl53l8cx_buffers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
extern "C" {
2020
#endif
2121

22-
#include "platform.h"
22+
#include "vl53l8cx_platform.h"
2323

2424
/**
2525
* @brief Inner internal number of targets.

src/platform.c renamed to src/vl53l8cx_platform.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file platform.cpp
3+
* @file vl53l8cx_platform.cpp
44
* @author STMicroelectronics
55
* @version V1.0.0
66
* @date 11 November 2021
@@ -36,7 +36,7 @@
3636
*/
3737

3838

39-
#include "platform.h"
39+
#include "vl53l8cx_platform.h"
4040

4141

4242
uint8_t VL53L8CX_RdByte(

src/platform.h renamed to src/vl53l8cx_platform.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file platform.h
3+
* @file vl53l8cx_platform.h
44
* @author STMicroelectronics
55
* @version V1.0.0
66
* @date 11 November 2021
@@ -35,8 +35,8 @@
3535
******************************************************************************
3636
*/
3737

38-
#ifndef _PLATFORM_H_
39-
#define _PLATFORM_H_
38+
#ifndef _VL53L8CX_PLATFORM_H_
39+
#define _VL53L8CX_PLATFORM_H_
4040

4141
#ifdef __cplusplus
4242
extern "C" {
@@ -47,7 +47,7 @@ extern "C" {
4747

4848
#include <stdint.h>
4949
#include <string.h>
50-
#include "platform_config.h"
50+
#include "vl53l8cx_platform_config.h"
5151

5252
#define VL53L8CX_COMMS_CHUNK_SIZE 4096
5353
#define SPI_WRITE_MASK(x) (uint16_t)(x | 0x8000)
@@ -111,4 +111,4 @@ void VL53L8CX_SwapBuffer(
111111
}
112112
#endif
113113

114-
#endif // _PLATFORM_H_
114+
#endif // _VL53L8CX_PLATFORM_H_

src/platform_config.h renamed to src/vl53l8cx_platform_config.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file platform_config.h
3+
* @file vl53l8cx_platform_config.h
44
* @author STMicroelectronics
55
* @version V1.0.0
66
* @date 11 November 2021
@@ -35,13 +35,13 @@
3535
******************************************************************************
3636
*/
3737

38-
#ifndef _PLATFORM_CONFIG_H_
39-
#define _PLATFORM_CONFIG_H_
38+
#ifndef _VL53L8CX_PLATFORM_CONFIG_H_
39+
#define _VL53L8CX_PLATFORM_CONFIG_H_
4040

41-
#if __has_include("platform_config_custom.h")
42-
#include "platform_config_custom.h"
41+
#if __has_include("vl53l8cx_platform_config_custom.h")
42+
#include "vl53l8cx_platform_config_custom.h"
4343
#else
44-
#include "platform_config_default.h"
44+
#include "vl53l8cx_platform_config_default.h"
4545
#endif
4646

47-
#endif // _PLATFORM_CONFIG_H_
47+
#endif // _VL53L8CX_PLATFORM_CONFIG_H_

src/platform_config_default.h renamed to src/vl53l8cx_platform_config_default.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file platform_config_default.h
3+
* @file vl53l8cx_platform_config_default.h
44
* @author STMicroelectronics
55
* @version V1.0.0
66
* @date 11 November 2021
@@ -35,8 +35,8 @@
3535
******************************************************************************
3636
*/
3737

38-
#ifndef _PLATFORM_CONFIG_DEFAULT_H_
39-
#define _PLATFORM_CONFIG_DEFAULT_H_
38+
#ifndef _VL53L8CX_PLATFORM_CONFIG_DEFAULT_H_
39+
#define _VL53L8CX_PLATFORM_CONFIG_DEFAULT_H_
4040

4141
/*
4242
* @brief If you want to customize these defines you can add in the application
@@ -80,4 +80,4 @@
8080
// #define VL53L8CX_DISABLE_TARGET_STATUS
8181
// #define VL53L8CX_DISABLE_MOTION_INDICATOR
8282

83-
#endif // _PLATFORM_CONFIG_DEFAULT_H_
83+
#endif // _VL53L8CX_PLATFORM_CONFIG_DEFAULT_H_

src/vl53l8cx_plugin_xtalk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static uint8_t _vl53l8cx_poll_for_answer(
4545

4646
/*
4747
* Inner function, not available outside this file. This function is used to
48-
* program the output using the macro defined into the 'platform.h' file.
48+
* program the output using the macro defined into the 'vl53l8cx_platform.h' file.
4949
*/
5050

5151
static uint8_t _vl53l8cx_program_output_config(

0 commit comments

Comments
 (0)