Skip to content

Commit 6554ae6

Browse files
committed
Using alternate timer 0 overflow interrupt signal name for ATtiny24/44/84.
1 parent bd823bf commit 6554ae6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hardware/arduino/cores/arduino/wiring.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ volatile unsigned long timer0_overflow_count = 0;
4141
volatile unsigned long timer0_millis = 0;
4242
static unsigned char timer0_fract = 0;
4343

44+
#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
45+
SIGNAL(TIM0_OVF_vect)
46+
#else
4447
SIGNAL(TIMER0_OVF_vect)
48+
#endif
4549
{
4650
// copy these to local variables so they can be stored in registers
4751
// (volatile variables must be read from memory on every access)

0 commit comments

Comments
 (0)