triface: disable watchdog during the initialization routine.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 25 May 2010 14:11:02 +0000 (14:11 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 25 May 2010 14:11:02 +0000 (14:11 +0000)
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

index 8da45a688a3958f84c24c01d108eb17b67908369..805ce443cfae569e4c42fbcba2d196c83861f4fb 100644 (file)
@@ -73,6 +73,8 @@ static void init(void)
        timer_init();
        adc_init();
        buz_init();
+       MCUSR = 0;
+       wdt_disable();
 
        INPUT_INIT();
 }