Now you can use NC as InterruptIn

Dependencies:   X_NUCLEO_COMMON

Fork of X_NUCLEO_6180XA1 by ST

Revision:
15:454710d17358
Parent:
12:71d589e6fd2c
Child:
16:0d4776564733
--- a/Components/STMPE1600/stmpe1600_class.h	Mon Oct 19 13:54:17 2015 +0200
+++ b/Components/STMPE1600/stmpe1600_class.h	Tue Oct 20 16:44:28 2015 +0200
@@ -60,7 +60,7 @@
 
   typedef enum {
     // GPIO Expander pin names
-    GPIO_0,
+    GPIO_0=0,
     GPIO_1,
     GPIO_2,
     GPIO_3,            
@@ -107,7 +107,8 @@
 			dev_i2c.i2c_read(data, expdevaddr, GPSR_0_7, 1);
 			dev_i2c.i2c_read(&data[1], expdevaddr, GPSR_8_15, 1);			
 			*(uint16_t*)data = *(uint16_t*)data & (uint16_t)(~(1<<(uint16_t)exppinname));  // set pin mask 			
-			if (lvl) *(uint16_t*)data = *(uint16_t*)data | (uint16_t)(1<<(uint16_t)exppinname);
+			if(lvl) 
+				 *(uint16_t*)data = *(uint16_t*)data | (uint16_t)(1<<(uint16_t)exppinname);
 			dev_i2c.i2c_write(data, expdevaddr, GPSR_0_7, 1);
 			dev_i2c.i2c_write(&data[1], expdevaddr, GPSR_8_15, 1);			
 		}