From: asterix Date: Tue, 2 Dec 2008 13:43:10 +0000 (+0000) Subject: Use new wdt interface. X-Git-Tag: 2.1.0~728 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4383ed1601f1e679b3480d86d157190027efff1a;p=bertos.git Use new wdt interface. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1954 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/examples/triface/protocol.c b/examples/triface/protocol.c index 3e4197e0..1f630a1b 100644 --- a/examples/triface/protocol.c +++ b/examples/triface/protocol.c @@ -51,7 +51,7 @@ #include #include #include -#include +#include #include #include @@ -300,9 +300,7 @@ MAKE_CMD(reset, "", "", ({ //Silence "args not used" warning. (void)args; - wdt_init(); - wdt_setTimeout(7); - wdt_enable(true); + wdt_enable(WDTO_2S); /*We want to have an infinite loop that lock access on watchdog timer. This piece of code it's equivalent to a while(true), but we have done this because