From: arighi Date: Tue, 25 May 2010 14:11:02 +0000 (+0000) Subject: triface: disable watchdog during the initialization routine. X-Git-Tag: 2.5.0~92 X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=e66650f59afd2d01c4ebc809421dd4b5ff847818 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 --- 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(); }