diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-08-31 18:12:13 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-08-31 18:12:13 +0200 |
commit | a3d66a7dd079d13b7e6d7e6f08fd1a6b2409ef27 (patch) | |
tree | 0df83a35d8c11357870105c82b1a7cada56148fc | |
parent | 36f11ebcc622eb695e80c641dae0edad5b98e616 (diff) |
Added EXTERNAL_NUM_INTERRUPTS for AVR xxU2 series
-rw-r--r-- | cores/arduino/wiring_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cores/arduino/wiring_private.h b/cores/arduino/wiring_private.h index ed7c8f0..a277b14 100644 --- a/cores/arduino/wiring_private.h +++ b/cores/arduino/wiring_private.h @@ -52,7 +52,8 @@ uint32_t countPulseASM(volatile uint8_t *port, uint8_t bit, uint8_t stateMask, u #define EXTERNAL_INT_6 6 #define EXTERNAL_INT_7 7 -#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega128RFA1__) || defined(__AVR_ATmega256RFR2__) +#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega128RFA1__) || defined(__AVR_ATmega256RFR2__) || \ + defined(__AVR_AT90USB82__) || defined(__AVR_AT90USB162__) || defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega8U2__) #define EXTERNAL_NUM_INTERRUPTS 8 #elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) #define EXTERNAL_NUM_INTERRUPTS 3 |