aboutsummaryrefslogtreecommitdiff
path: root/variants
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-10-23 11:00:25 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-10-23 11:00:25 +0200
commit8364a0c1a37a4f6f24632f359b7ee161bafa6730 (patch)
tree82b209585a8ed97d38da4c5addac05f830f52076 /variants
parent0f0d2c958df703bb8deca4b137698ce16e764466 (diff)
parent098334a4dfdf6124711752a9b03319ed2d925e97 (diff)
Merge branch 'arduinoGemmaInterrupts' of https://github.com/agdl/Arduino
Diffstat (limited to 'variants')
-rw-r--r--variants/gemma/pins_arduino.h2
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