Now you can use NC as InterruptIn
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_platform.h
- Revision:
- 16:0d4776564733
- Parent:
- 10:4954b09b72d8
- Child:
- 19:39ea6bab0e5b
--- a/Components/VL6180X/vl6180x_platform.h Tue Oct 20 16:44:28 2015 +0200 +++ b/Components/VL6180X/vl6180x_platform.h Tue Oct 27 15:25:11 2015 +0100 @@ -31,9 +31,9 @@ #define VL6180x_SINGLE_DEVICE_DRIVER 0 #define VL6180x_RANGE_STATUS_ERRSTRING 1 -#define VL6180X_SAFE_POLLING_ENTER 0 -#define VL6180X_LOG_ENABLE 0 - +#define VL6180X_SAFE_POLLING_ENTER 0 +#define VL6180X_LOG_ENABLE 0 +#define MY_LOG 1 #define VL6180x_DEV_DATA_ATTR #define ROMABLE_DATA @@ -69,11 +69,17 @@ }while(0) #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 VL6180x_ErrLog(... ) OnErrLog() //(void)0 + void OnErrLog(void); + #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 + extern Serial pc; + #define printf(...) pc.printf(__VA_ARGS__) #endif