From 83114b4c765f7877a5d2c9a319ff997ca4355c87 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Wed, 11 Jan 2017 17:31:23 +1100 Subject: [PATCH] Enable AVR watchdog timer --- timers.ino | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/timers.ino b/timers.ino index a898e27a..1ee72cdb 100644 --- a/timers.ino +++ b/timers.ino @@ -14,6 +14,10 @@ Timers are typically low resolution (Compared to Schedulers), with maximum frequ #include "globals.h" #include "sensors.h" +#if defined(CORE_AVR) + #include +#endif + void initialiseTimers() { #if defined(CORE_AVR) //AVR chips use the ISR for this @@ -26,6 +30,10 @@ void initialiseTimers() /* Now configure the prescaler to CPU clock divided by 128 = 125Khz */ TCCR2B |= (1<