Watchdog Timer interrupt service routine added.Thanks @kolaf.

This commit is contained in:
Henrik Ekblad
2015-04-02 10:10:43 +02:00
parent 082cb29e8d
commit be9cb8b1ff
+8
View File
@@ -11,6 +11,14 @@ void wakeUp2() //place to send the second interrupts
pinIntTrigger = 2;
}
// Watchdog Timer interrupt service routine. This routine is required
// to allow automatic WDIF and WDIE bit clearance in hardware.
ISR (WDT_vect)
{
// WDIE & WDIF is cleared in hardware upon entering this ISR
wdt_disable();
}
MyHwATMega328::MyHwATMega328() : MyHw()
{
}