Start to refactor kernel configuration.
[bertos.git] / examples / triface / protocol.c
index fa4c0bad9741bf18a8eed63e01a9a159773b45b1..1f630a1b3e9ea97835e2ee031167782cd968d4df 100644 (file)
@@ -51,7 +51,7 @@
 #include <drv/timer.h>
 #include <drv/ser.h>
 #include <drv/sipo.h>
-#include <drv/wdt.h>
+#include <avr/wdt.h>
 #include <drv/buzzer.h>
 
 #include <mware/readline.h>
@@ -300,8 +300,7 @@ MAKE_CMD(reset, "", "",
 ({
        //Silence "args not used" warning.
        (void)args;
-       wdt_init(7);
-       wdt_start();
+       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