From e66650f59afd2d01c4ebc809421dd4b5ff847818 Mon Sep 17 00:00:00 2001 From: arighi Date: Tue, 25 May 2010 14:11:02 +0000 Subject: [PATCH] triface: disable watchdog during the initialization routine. This is necessary to make the watchdog stop resetting the board after a "reset" command is issued. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3825 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/triface/examples/triface/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boards/triface/examples/triface/main.c b/boards/triface/examples/triface/main.c index 8da45a68..805ce443 100644 --- a/boards/triface/examples/triface/main.c +++ b/boards/triface/examples/triface/main.c @@ -73,6 +73,8 @@ static void init(void) timer_init(); adc_init(); buz_init(); + MCUSR = 0; + wdt_disable(); INPUT_INIT(); } -- 2.25.1