|
@@ -2,6 +2,9 @@
|
|
// use atmega timer2 as main system timer instead of timer0
|
|
// use atmega timer2 as main system timer instead of timer0
|
|
// timer0 is used for fast pwm (OC0B output)
|
|
// timer0 is used for fast pwm (OC0B output)
|
|
// original OVF handler is disabled
|
|
// original OVF handler is disabled
|
|
|
|
+
|
|
|
|
+#ifdef SYSTEM_TIMER_2
|
|
|
|
+
|
|
#include <avr/io.h>
|
|
#include <avr/io.h>
|
|
#include <avr/interrupt.h>
|
|
#include <avr/interrupt.h>
|
|
#include "Arduino.h"
|
|
#include "Arduino.h"
|
|
@@ -166,3 +169,5 @@ void noTone2(__attribute__((unused)) uint8_t _pin)
|
|
{
|
|
{
|
|
PIN_CLR(BEEPER);
|
|
PIN_CLR(BEEPER);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+#endif //SYSTEM_TIMER_2
|