changeset 53:98b5a43fc748

Disable WDT in reset just in case we take too long (eg after reset when the timer is set to a short time)
author darius@Inchoate
date Wed, 29 Oct 2008 16:11:15 +1030
parents 3217e93b28a3
children 58f1ec46bff6
files testavr.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/testavr.c	Wed Oct 29 16:10:20 2008 +1030
+++ b/testavr.c	Wed Oct 29 16:11:15 2008 +1030
@@ -57,6 +57,7 @@
     __attribute__((section(".init3")))
     __attribute__((naked));
 void handle_mcucsr(void) {
+    wdt_disable();
     mcucsr = MCUCSR;
     MCUCSR = 0;
 }