INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.h
- Revision:
- 43:8120a1ff3055
- Parent:
- 42:692c6223dc24
- Child:
- 44:36d12d319078
--- a/Components/VL6180X/vl6180x_class.h Fri Mar 11 09:47:43 2016 +0000 +++ b/Components/VL6180X/vl6180x_class.h Mon Mar 14 15:58:24 2016 +0000 @@ -208,7 +208,7 @@ */ void EnableInterruptMeasureDetectionIRQ(void) { - if (gpio1Pin != NC) gpio1Int->enable_irq(); + if (gpio1Int != NULL) gpio1Int->enable_irq(); } /** @@ -217,7 +217,7 @@ */ void DisableInterruptMeasureDetectionIRQ(void) { - if (gpio1Pin != NC) gpio1Int->disable_irq(); + if (gpio1Int != NULL) gpio1Int->disable_irq(); } /*** End High level API ***/ @@ -228,7 +228,7 @@ */ void AttachInterruptMeasureDetectionIRQ(void (*fptr)(void)) { - if (gpio1Pin != NC) gpio1Int->rise(fptr); + if (gpio1Int != NULL) gpio1Int->rise(fptr); } /** @@ -1190,7 +1190,6 @@ STMPE1600DigiOut *expgpio0; /* Measure detection IRQ */ InterruptIn *gpio1Int; - PinName gpio1Pin; /* Device data */ MyVL6180Dev_t MyDevice; VL6180xDev_t Device;