From 2387046c19295bd9ef3b9ceb430d70db40ff8a68 Mon Sep 17 00:00:00 2001 From: Fede85 Date: Mon, 13 May 2013 21:22:59 +0200 Subject: [PATCH] Added support to INT6 on Leonardo. Fixes #988 --- hardware/arduino/cores/arduino/WInterrupts.c | 30 +++++++++++++------ .../arduino/cores/arduino/wiring_private.h | 2 +- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/hardware/arduino/cores/arduino/WInterrupts.c b/hardware/arduino/cores/arduino/WInterrupts.c index de49cd16e..d3fbf100e 100644 --- a/hardware/arduino/cores/arduino/WInterrupts.c +++ b/hardware/arduino/cores/arduino/WInterrupts.c @@ -51,14 +51,14 @@ void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) { // I hate doing this, but the register assignment differs between the 1280/2560 // and the 32U4. Since avrlib defines registers PCMSK1 and PCMSK2 that aren't // even present on the 32U4 this is the only way to distinguish between them. - case 0: - EICRA = (EICRA & ~((1<