44 #include "contiki-conf.h"
46 #define WDT_TIMEOUT_MIN (WDCTL_INT1 | WDCTL_INT0)
64 WDCTL = (WDCTL & 0x0F) | WDCTL_CLR3 | WDCTL_CLR1;
65 WDCTL = (WDCTL & 0x0F) | WDCTL_CLR2 | WDCTL_CLR0;
71 WDCTL = WDT_TIMEOUT_MIN;
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
Definitions for TI/Chipcon cc2530, cc2531 and cc2533 SFR registers.
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
Header file with definitions of bit masks for some cc2530 SFRs
void watchdog_periodic(void)
Writes the WDT clear sequence.
#define DISABLE_INTERRUPTS()
Disable interrupts, saving the previous state so it can be later restored with RESTORE_INTERRUPTS().
void watchdog_init(void)
Copyright (c) 2014, Analog Devices, Inc.