diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2010-09-08 22:33:33 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2010-09-08 22:33:33 +0000 |
commit | f9a3b5cfa9b591096b80a7541323c4319da2d32d (patch) | |
tree | e371a9e83e28c3eeb7113b963c44cd11fe0135ee /cores/arduino/WInterrupts.c | |
parent | 4bbd4f7448907ed0133ef737fc694751f9f97ea3 (diff) |
1280 -> 1280/2560.
Diffstat (limited to 'cores/arduino/WInterrupts.c')
-rwxr-xr-x | cores/arduino/WInterrupts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cores/arduino/WInterrupts.c b/cores/arduino/WInterrupts.c index 69a78b0..9c57411 100755 --- a/cores/arduino/WInterrupts.c +++ b/cores/arduino/WInterrupts.c @@ -52,7 +52,7 @@ void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) { // Enable the interrupt. switch (interruptNum) { -#if defined(__AVR_ATmega1280__) +#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) case 2: EICRA = (EICRA & ~((1 << ISC00) | (1 << ISC01))) | (mode << ISC00); EIMSK |= (1 << INT0); @@ -105,7 +105,7 @@ void detachInterrupt(uint8_t interruptNum) { // to the number of the EIMSK bit to clear, as this isn't true on the // ATmega8. There, INT0 is 6 and INT1 is 7.) switch (interruptNum) { -#if defined(__AVR_ATmega1280__) +#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) case 2: EIMSK &= ~(1 << INT0); break; @@ -150,7 +150,7 @@ void attachInterruptTwi(void (*userFunc)(void) ) { } */ -#if defined(__AVR_ATmega1280__) +#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) SIGNAL(INT0_vect) { if(intFunc[EXTERNAL_INT_2]) |