Open
Description
First and foremost, thanks for introducing Curie to the Arduino world. To me it sparked interest in using the Curie for more serious projects.
Having said that .. it appears to me that the documentation for the CHANGE interrupt mode is incorrect for Arduino IO4 and IO5.
WInterrupts.c indicates CHANGE
mode is only valid for the pins connected to the Quark core (p->ulGPIOType == SOC_GPIO
)
variant.cpp assigns the ulGPIOType as ulGPIOType == SOC_GPIO
for Arduino IO 2, 4, 7, 8, 10-13, 21-28
That means
- Arduino IO4 is assumed to be connected to SOC_GPIO, and would support CHANGE interrupts
- Arduino IO5 is assumed to be connected to SS_GPIO, and would not support CHANGE interrupts
However .. the documentation at arduino.cc reads
change is only supported by pins 2, 5, 7, 8, 10, 11, 12, 13.
I suspect this should be
change is only supported by pins 2, 4, 7, 8, 10, 11, 12, 13.
Please advise