From 4383ed1601f1e679b3480d86d157190027efff1a Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 2 Dec 2008 13:43:10 +0000 Subject: [PATCH] Use new wdt interface. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1954 38d2e660-2303-0410-9eaa-f027e97ec537 --- examples/triface/protocol.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.25.1