VL53L1X sensor class, for ARM Mbed platform. Based on Ultra-lite, Mass-market C Driver.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_53L1A1_mbed
Revision 9:dcaa95b7b374, committed 2021-05-11
- Comitter:
- johnAlexander
- Date:
- Tue May 11 09:35:17 2021 +0000
- Parent:
- 6:aa13392d16bb
- Commit message:
- Update wait_ms for mbedOS v6.x
Changed in this revision
| vl53l1x_class.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/vl53l1x_class.h Fri May 17 09:07:55 2019 +0000
+++ b/vl53l1x_class.h Tue May 11 09:35:17 2021 +0000
@@ -53,6 +53,9 @@
#include "vl53L1x_I2c.h"
#include "Stmpe1600.h"
+#if (MBED_VERSION > 60300)
+extern "C" void wait_ms(int ms);
+#endif
#define VL53L1X_IMPLEMENTATION_VER_MAJOR 1
#define VL53L1X_IMPLEMENTATION_VER_MINOR 0
@@ -679,6 +682,13 @@
VL53L1_Dev_t MyDevice;
VL53L1_DEV Device;
};
-
+/*
+#if (MBED_VERSION > 60300)
+extern "C" void wait_ms(int ms)
+{
+ thread_sleep_for(ms);
+}
+#endif
+*/
#endif /* _VL53L1X_CLASS_H_ */