Open GoogleCodeExporter opened 8 years ago
I had the same issue trying to get the pulse generator example from section
18.5 in the Arduino cookbook to compile on an older ATMega8 with the Arduino
bootloader.
The fix was to add the mapping for the ATMega8 pins in TimerOne.cpp:
#include "TimerOne.h" <--- original code
// enable support for ATMEGA8
#if defined(__AVR_ATmega8__)
#define TIMSK1 TIMSK
#define GTCCR SFIOR
#define PSRSYNC PSR10
#endif
TimerOne Timer1; // preinstatiate <--- original code
After that, the pulse generator compiled and appeared to function correctly.
Original comment by fixbox2...@gmail.com
on 8 Dec 2012 at 4:48
Original issue reported on code.google.com by
andrew.r...@gmail.com
on 26 Aug 2012 at 5:39