Now you can use NC as InterruptIn

Dependencies:   X_NUCLEO_COMMON

Fork of X_NUCLEO_6180XA1 by ST

Revision:
20:dd8390d615bf
Parent:
19:39ea6bab0e5b
--- a/Components/VL6180X/vl6180x_platform.h	Wed Oct 28 09:28:52 2015 +0000
+++ b/Components/VL6180X/vl6180x_platform.h	Wed Oct 28 13:07:59 2015 +0000
@@ -33,7 +33,7 @@
 #define VL6180x_RANGE_STATUS_ERRSTRING  1
 #define VL6180X_SAFE_POLLING_ENTER 	0
 #define VL6180X_LOG_ENABLE              0
-#define MY_LOG 1
+#define MY_LOG                          1
 
 #define VL6180x_DEV_DATA_ATTR
 #define ROMABLE_DATA
@@ -70,14 +70,14 @@
 
 #else /* VL6180X_LOG_ENABLE no logging */
   //void OnErrLog(void);
-  #define LOG_FUNCTION_START(...) //(void)0
-  #define LOG_FUNCTION_END(...) //(void)0
-  #define LOG_FUNCTION_END_FMT(...) //(void)0
+  #define LOG_FUNCTION_START(...) (void)0
+  #define LOG_FUNCTION_END(...) (void)0
+  #define LOG_FUNCTION_END_FMT(...) (void)0
   #define VL6180x_ErrLog(... ) //OnErrLog() //(void)0
 #endif
 
   
-#ifdef MY_LOG  
+#ifdef MY_LOG  /* define printf as pc.printf in order to change the baudrate */
   extern Serial pc;
   #define printf(...) pc.printf(__VA_ARGS__)
 #endif
@@ -88,11 +88,11 @@
 #endif
 		
 struct MyVL6180Dev_t {
-		struct VL6180xDevData_t Data;
-		uint8_t I2cAddr;
-		//uint8_t DevID;
+    struct VL6180xDevData_t Data;
+    uint8_t I2cAddr;
+    //uint8_t DevID;
     
-	//misc flags for application 	
+    //misc flags for application 	
     unsigned Present:1;
     unsigned Ready:1;
 };