From 660b7f9a78399ab781dab416c853fbb33ee6370f Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Mon, 11 Feb 2008 10:44:49 +0000 Subject: [PATCH] Initialize watchdog instead of stopping and starting it --- cpu/msp430/msp430.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpu/msp430/msp430.c b/cpu/msp430/msp430.c index 276d556c1..4685ce1c3 100644 --- a/cpu/msp430/msp430.c +++ b/cpu/msp430/msp430.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: msp430.c,v 1.8 2008/02/03 20:58:11 adamdunkels Exp $ + * @(#)$Id: msp430.c,v 1.9 2008/02/11 10:44:49 adamdunkels Exp $ */ #include #include @@ -159,14 +159,13 @@ void msp430_cpu_init(void) { dint(); - watchdog_stop(); + watchdog_init(); init_ports(); msp430_init_dco(); eint(); if((uintptr_t)cur_break & 1) { /* Workaround for msp430-ld bug! */ cur_break++; } - watchdog_start(); } /*---------------------------------------------------------------------------*/ #define asmv(arg) __asm__ __volatile__(arg)