diff options
author | Victor Aprea <victor.aprea@wickeddevice.com> | 2015-05-24 20:35:23 -0400 |
---|---|---|
committer | Victor Aprea <victor.aprea@wickeddevice.com> | 2015-05-24 20:35:23 -0400 |
commit | 1bc9ee33f8ff4d433f8a1c23f07314560dd8f7b2 (patch) | |
tree | 88432b8946802ac232c609b7c2219d318b15aa01 /cores/arduino/WInterrupts.c | |
parent | 335d7b37efb35cc021cd3aa5368c69ada0360462 (diff) |
Add missing case to detachinterrupt
Diffstat (limited to 'cores/arduino/WInterrupts.c')
-rw-r--r-- | cores/arduino/WInterrupts.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cores/arduino/WInterrupts.c b/cores/arduino/WInterrupts.c index d3fbf10..6663462 100644 --- a/cores/arduino/WInterrupts.c +++ b/cores/arduino/WInterrupts.c @@ -223,6 +223,18 @@ void detachInterrupt(uint8_t interruptNum) { #warning detachInterrupt may need some more work for this cpu (case 1) #endif break; + + case 2: + #if defined(EIMSK) && defined(INT2) + EIMSK &= ~(1 << INT2); + #elif defined(GICR) && defined(INT2) + GICR &= ~(1 << INT2); // atmega32 + #elif defined(GIMSK) && defined(INT2) + GIMSK &= ~(1 << INT2); + #else + #warning detachInterrupt may need some more work for this cpu (case 2) + #endif + break; #endif } |