Skip to content

Commit 6f58229

Browse files
committed
TimerOne library adaptation for ATmega16
1 parent 13c10aa commit 6f58229

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/TimerOne/TimerOne.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
#include "TimerOne.h"
1919

20+
#if defined(__AVR_ATmega8__) || defined(__AVR_ATmega128__) || defined(__AVR_ATmega16__)
21+
#define TIMSK1 TIMSK
22+
#endif
23+
2024
TimerOne Timer1; // preinstatiate
2125

2226
ISR(TIMER1_OVF_vect) // interrupt service routine that wraps a user defined function supplied by attachInterrupt

0 commit comments

Comments
 (0)