mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 03:30:01 +00:00
Initialize watchdog instead of stopping and starting it
This commit is contained in:
parent
6740d95bfa
commit
660b7f9a78
@ -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 <io.h>
|
||||
#include <signal.h>
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user