Librairie adaptée au laboratoire 2

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_6180XA1 by ST

Revision:
56:37d1736bd896
Parent:
20:dd8390d615bf
Child:
57:fa4c622b04a7
--- a/Components/VL6180X/vl6180x_platform.h	Fri Mar 03 15:06:18 2017 +0000
+++ b/Components/VL6180X/vl6180x_platform.h	Mon Mar 13 17:57:03 2017 +0100
@@ -29,9 +29,9 @@
 #include "vl6180x_def.h"
 
 
-#define VL6180x_SINGLE_DEVICE_DRIVER 	0
+#define VL6180x_SINGLE_DEVICE_DRIVER    0
 #define VL6180x_RANGE_STATUS_ERRSTRING  1
-#define VL6180X_SAFE_POLLING_ENTER 	0
+#define VL6180X_SAFE_POLLING_ENTER 	    0
 #define VL6180X_LOG_ENABLE              0
 #define MY_LOG                          1
 
@@ -58,15 +58,15 @@
     trace_printf("beg %s start @%d\t" fmt "\n", __func__, LOG_GET_TIME(), ##__VA_ARGS__)
 
 #define LOG_FUNCTION_END(status)\
-        trace_printf("end %s @%d %d\n", __func__, LOG_GET_TIME(), (int)status)
+    trace_printf("end %s @%d %d\n", __func__, LOG_GET_TIME(), (int)status)
 
 #define LOG_FUNCTION_END_FMT(status, fmt, ... )\
-        trace_printf("End %s @%d %d\t"fmt"\n" , __func__, LOG_GET_TIME(), (int)status, ##__VA_ARGS__)
+    trace_printf("End %s @%d %d\t"fmt"\n" , __func__, LOG_GET_TIME(), (int)status, ##__VA_ARGS__)
 
 #define VL6180x_ErrLog(msg, ... )\
-    do{\
+    do {\
         trace_printf("ERR in %s line %d\n" msg, __func__, __LINE__, ##__VA_ARGS__);\
-    }while(0)
+    } while(0)
 
 #else /* VL6180X_LOG_ENABLE no logging */
   //void OnErrLog(void);
@@ -76,13 +76,11 @@
   #define VL6180x_ErrLog(... ) //OnErrLog() //(void)0
 #endif
 
-  
 #ifdef MY_LOG  /* define printf as pc.printf in order to change the baudrate */
   extern Serial pc;
   #define printf(...) pc.printf(__VA_ARGS__)
 #endif
 
-
 #if  VL6180x_SINGLE_DEVICE_DRIVER
     #error "VL6180x_SINGLE_DEVICE_DRIVER must be set"
 #endif
@@ -101,8 +99,4 @@
 #define VL6180xDevDataGet(dev, field) (dev->Data.field)
 #define VL6180xDevDataSet(dev, field, data) (dev->Data.field)=(data)
 
-
 #endif  /* VL6180x_PLATFORM */
-
-
-