File tree 8 files changed +23
-23
lines changed
8 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 43
43
#include " Arduino.h"
44
44
#include " Wire.h"
45
45
#include " SPI.h"
46
- #include " platform .h"
46
+ #include " vl53l8cx_platform .h"
47
47
#include " vl53l8cx_api.h"
48
48
#include " vl53l8cx_plugin_detection_thresholds.h"
49
49
#include " vl53l8cx_plugin_motion_indicator.h"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ extern "C" {
23
23
24
24
25
25
26
- #include "platform .h"
26
+ #include "vl53l8cx_platform .h"
27
27
28
28
/**
29
29
* @brief Current driver version.
@@ -274,7 +274,7 @@ extern "C" {
274
274
*/
275
275
276
276
typedef struct {
277
- /* Platform, filled by customer into the 'platform .h' file */
277
+ /* Platform, filled by customer into the 'vl53l8cx_platform .h' file */
278
278
VL53L8CX_Platform platform ;
279
279
/* Results streamcount, value auto-incremented at each range */
280
280
uint8_t streamcount ;
Original file line number Diff line number Diff line change 19
19
extern "C" {
20
20
#endif
21
21
22
- #include "platform .h"
22
+ #include "vl53l8cx_platform .h"
23
23
24
24
/**
25
25
* @brief Inner internal number of targets.
Original file line number Diff line number Diff line change 1
1
/**
2
2
******************************************************************************
3
- * @file platform .cpp
3
+ * @file vl53l8cx_platform .cpp
4
4
* @author STMicroelectronics
5
5
* @version V1.0.0
6
6
* @date 11 November 2021
36
36
*/
37
37
38
38
39
- #include "platform .h"
39
+ #include "vl53l8cx_platform .h"
40
40
41
41
42
42
uint8_t VL53L8CX_RdByte (
Original file line number Diff line number Diff line change 1
1
/**
2
2
******************************************************************************
3
- * @file platform .h
3
+ * @file vl53l8cx_platform .h
4
4
* @author STMicroelectronics
5
5
* @version V1.0.0
6
6
* @date 11 November 2021
35
35
******************************************************************************
36
36
*/
37
37
38
- #ifndef _PLATFORM_H_
39
- #define _PLATFORM_H_
38
+ #ifndef _VL53L8CX_PLATFORM_H_
39
+ #define _VL53L8CX_PLATFORM_H_
40
40
41
41
#ifdef __cplusplus
42
42
extern "C" {
@@ -47,7 +47,7 @@ extern "C" {
47
47
48
48
#include <stdint.h>
49
49
#include <string.h>
50
- #include "platform_config .h"
50
+ #include "vl53l8cx_platform_config .h"
51
51
52
52
#define VL53L8CX_COMMS_CHUNK_SIZE 4096
53
53
#define SPI_WRITE_MASK (x ) (uint16_t)(x | 0x8000)
@@ -111,4 +111,4 @@ void VL53L8CX_SwapBuffer(
111
111
}
112
112
#endif
113
113
114
- #endif // _PLATFORM_H_
114
+ #endif // _VL53L8CX_PLATFORM_H_
Original file line number Diff line number Diff line change 1
1
/**
2
2
******************************************************************************
3
- * @file platform_config .h
3
+ * @file vl53l8cx_platform_config .h
4
4
* @author STMicroelectronics
5
5
* @version V1.0.0
6
6
* @date 11 November 2021
35
35
******************************************************************************
36
36
*/
37
37
38
- #ifndef _PLATFORM_CONFIG_H_
39
- #define _PLATFORM_CONFIG_H_
38
+ #ifndef _VL53L8CX_PLATFORM_CONFIG_H_
39
+ #define _VL53L8CX_PLATFORM_CONFIG_H_
40
40
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"
43
43
#else
44
- #include "platform_config_default .h"
44
+ #include "vl53l8cx_platform_config_default .h"
45
45
#endif
46
46
47
- #endif // _PLATFORM_CONFIG_H_
47
+ #endif // _VL53L8CX_PLATFORM_CONFIG_H_
Original file line number Diff line number Diff line change 1
1
/**
2
2
******************************************************************************
3
- * @file platform_config_default .h
3
+ * @file vl53l8cx_platform_config_default .h
4
4
* @author STMicroelectronics
5
5
* @version V1.0.0
6
6
* @date 11 November 2021
35
35
******************************************************************************
36
36
*/
37
37
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_
40
40
41
41
/*
42
42
* @brief If you want to customize these defines you can add in the application
80
80
// #define VL53L8CX_DISABLE_TARGET_STATUS
81
81
// #define VL53L8CX_DISABLE_MOTION_INDICATOR
82
82
83
- #endif // _PLATFORM_CONFIG_DEFAULT_H_
83
+ #endif // _VL53L8CX_PLATFORM_CONFIG_DEFAULT_H_
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ static uint8_t _vl53l8cx_poll_for_answer(
45
45
46
46
/*
47
47
* 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.
49
49
*/
50
50
51
51
static uint8_t _vl53l8cx_program_output_config (
You can’t perform that action at this time.
0 commit comments