50 #ifndef WATCHDOG_CONF_ENABLE
51 #define WATCHDOG_CONF_ENABLE 1
54 #if WATCHDOG_CONF_ENABLE
55 #define WATCHDOG_ENABLE SMWDTHROSC_WDCTL_EN
57 #define WATCHDOG_ENABLE 0
#define SMWDTHROSC_WDCTL_INT
Interval Select mask.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
#define SMWDTHROSC_WDCTL_EN
Enable mask.
Header file with prototypes for interrupt control on the cc2538 Cortex-M3 micro.
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
Header file with register manipulation macro definitions.
void watchdog_stop(void)
In watchdog mode, the WDT can not be stopped.
#define SMWDTHROSC_WDCTL_CLR_2
Clear timer mask[2].
#define SMWDTHROSC_WDCTL_CLR_1
Clear timer mask[1].
void watchdog_periodic(void)
Writes the WDT clear sequence.
#define SMWDTHROSC_WDCTL_CLR_3
Clear timer mask[3].
#define SMWDTHROSC_WDCTL_CLR_0
Clear timer mask[0].
#define SMWDTHROSC_WDCTL
Watchdog Control.
#define INTERRUPTS_DISABLE()
Disables all CPU interrupts.
Header file with register declarations and bit masks for the cc2538 Sleep Timer and Watchdog...
void watchdog_init(void)
Copyright (c) 2014, Analog Devices, Inc.