ArduinoCore-arc32 icon indicating copy to clipboard operation
ArduinoCore-arc32 copied to clipboard

Inconsistency between code and documentation regarding Interrupt change

Open cvonk opened this issue 9 years ago • 1 comments

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

Yours, Coert Vonk Independent Firmware Engineer wearables

cvonk avatar Oct 30 '16 04:10 cvonk

@bigdinotech can you please verify this inconsistency

eriknyquist avatar Dec 01 '16 21:12 eriknyquist