diff options
author | Arturo Guadalupi <a.guadalupi@arduino.cc> | 2015-10-23 10:44:02 +0200 |
---|---|---|
committer | Arturo Guadalupi <a.guadalupi@arduino.cc> | 2015-10-23 10:44:02 +0200 |
commit | 098334a4dfdf6124711752a9b03319ed2d925e97 (patch) | |
tree | bfcfc7f6bf03f7b144bd13f0a0bc173aa5f800c7 /variants | |
parent | 02dcc6ec74469523f2dc5502b1900bdf927ee1a3 (diff) |
Gemma digitalPinToInterrupt support
Added support for Arduino Gemma as required in #3929
Diffstat (limited to 'variants')
-rw-r--r-- | variants/gemma/pins_arduino.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/variants/gemma/pins_arduino.h b/variants/gemma/pins_arduino.h index 3150b6a..0af67c6 100644 --- a/variants/gemma/pins_arduino.h +++ b/variants/gemma/pins_arduino.h @@ -54,6 +54,8 @@ static const uint8_t A3 = 9; #define digitalPinToPCMSK(p) ( ((p) <= 4) ? (&PCMSK) : ((uint8_t *)0) ) #define digitalPinToPCMSKbit(p) ( (p) ) +#define digitalPinToInterrupt(p) ((p) == 2 ? 0 : NOT_AN_INTERRUPT) + #define analogPinToChannel(p) ( (p) < 6 ? (p) : (p) - 6 ) #define TCCR1A GTCCR |