aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WInterrupts.c
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-03-29 14:41:36 +0100
committerCristian Maglie <c.maglie@bug.st>2013-03-29 14:41:36 +0100
commitab41589c2b92607bec6b830dbebbbc74c4a46b0b (patch)
tree21b72dde286e9656fd77694f2d5709f9eb61df8c /cores/arduino/WInterrupts.c
parentf39a246be56a746b15d347e41071df82b398e3d3 (diff)
Removed deprecated interrupt handlers
Fixes #831 #881 #955 #1123 #1140
Diffstat (limited to 'cores/arduino/WInterrupts.c')
-rw-r--r--cores/arduino/WInterrupts.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/cores/arduino/WInterrupts.c b/cores/arduino/WInterrupts.c
index 62efc9c..de49cd1 100644
--- a/cores/arduino/WInterrupts.c
+++ b/cores/arduino/WInterrupts.c
@@ -230,82 +230,82 @@ void attachInterruptTwi(void (*userFunc)(void) ) {
*/
#if defined(__AVR_ATmega32U4__)
-SIGNAL(INT0_vect) {
+ISR(INT0_vect) {
if(intFunc[EXTERNAL_INT_0])
intFunc[EXTERNAL_INT_0]();
}
-SIGNAL(INT1_vect) {
+ISR(INT1_vect) {
if(intFunc[EXTERNAL_INT_1])
intFunc[EXTERNAL_INT_1]();
}
-SIGNAL(INT2_vect) {
+ISR(INT2_vect) {
if(intFunc[EXTERNAL_INT_2])
intFunc[EXTERNAL_INT_2]();
}
-SIGNAL(INT3_vect) {
+ISR(INT3_vect) {
if(intFunc[EXTERNAL_INT_3])
intFunc[EXTERNAL_INT_3]();
}
#elif defined(EICRA) && defined(EICRB)
-SIGNAL(INT0_vect) {
+ISR(INT0_vect) {
if(intFunc[EXTERNAL_INT_2])
intFunc[EXTERNAL_INT_2]();
}
-SIGNAL(INT1_vect) {
+ISR(INT1_vect) {
if(intFunc[EXTERNAL_INT_3])
intFunc[EXTERNAL_INT_3]();
}
-SIGNAL(INT2_vect) {
+ISR(INT2_vect) {
if(intFunc[EXTERNAL_INT_4])
intFunc[EXTERNAL_INT_4]();
}
-SIGNAL(INT3_vect) {
+ISR(INT3_vect) {
if(intFunc[EXTERNAL_INT_5])
intFunc[EXTERNAL_INT_5]();
}
-SIGNAL(INT4_vect) {
+ISR(INT4_vect) {
if(intFunc[EXTERNAL_INT_0])
intFunc[EXTERNAL_INT_0]();
}
-SIGNAL(INT5_vect) {
+ISR(INT5_vect) {
if(intFunc[EXTERNAL_INT_1])
intFunc[EXTERNAL_INT_1]();
}
-SIGNAL(INT6_vect) {
+ISR(INT6_vect) {
if(intFunc[EXTERNAL_INT_6])
intFunc[EXTERNAL_INT_6]();
}
-SIGNAL(INT7_vect) {
+ISR(INT7_vect) {
if(intFunc[EXTERNAL_INT_7])
intFunc[EXTERNAL_INT_7]();
}
#else
-SIGNAL(INT0_vect) {
+ISR(INT0_vect) {
if(intFunc[EXTERNAL_INT_0])
intFunc[EXTERNAL_INT_0]();
}
-SIGNAL(INT1_vect) {
+ISR(INT1_vect) {
if(intFunc[EXTERNAL_INT_1])
intFunc[EXTERNAL_INT_1]();
}
#if defined(EICRA) && defined(ISC20)
-SIGNAL(INT2_vect) {
+ISR(INT2_vect) {
if(intFunc[EXTERNAL_INT_2])
intFunc[EXTERNAL_INT_2]();
}
@@ -314,7 +314,7 @@ SIGNAL(INT2_vect) {
#endif
/*
-SIGNAL(SIG_2WIRE_SERIAL) {
+ISR(TWI_vect) {
if(twiIntFunc)
twiIntFunc();
}