aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/wiring.c
diff options
context:
space:
mode:
authorTorben Nielsen <ton@fractal.bitnoids.lan>2015-04-27 15:33:38 +0200
committerMartino Facchin <m.facchin@arduino.cc>2017-11-13 16:16:43 +0100
commitfb7c2cc02ebc38319ec86901d0a3c9f7249fb041 (patch)
tree2e9aac5be60786bd359b9b1943834d3f03335e41 /cores/arduino/wiring.c
parent6c861d8c70eb3639fad36944937f1086235c56d5 (diff)
Create timer0 overflow interrupt service routine for all ATtinies not just 24, 44 and 84
Diffstat (limited to 'cores/arduino/wiring.c')
-rw-r--r--cores/arduino/wiring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c
index b956f78..9727135 100644
--- a/cores/arduino/wiring.c
+++ b/cores/arduino/wiring.c
@@ -39,7 +39,7 @@ volatile unsigned long timer0_overflow_count = 0;
volatile unsigned long timer0_millis = 0;
static unsigned char timer0_fract = 0;
-#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
+#if defined(TIM0_OVF_vect)
ISR(TIM0_OVF_vect)
#else
ISR(TIMER0_OVF_vect)