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_CLR_2
Clear timer mask[2].
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
#define INTERRUPTS_DISABLE()
Disables all CPU interrupts.
Header file with register manipulation macro definitions.
#define SMWDTHROSC_WDCTL_EN
Enable mask.
#define SMWDTHROSC_WDCTL_CLR_0
Clear timer mask[0].
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
#define SMWDTHROSC_WDCTL_INT
Interval Select mask.
#define SMWDTHROSC_WDCTL
Watchdog Control.
Header file with prototypes for interrupt control on the cc2538 Cortex-M3 micro.
#define SMWDTHROSC_WDCTL_CLR_1
Clear timer mask[1].
void watchdog_init(void)
Initialisation function for the WDT.
Header file with register declarations and bit masks for the cc2538 Sleep Timer and Watchdog...
void watchdog_periodic(void)
Writes the WDT clear sequence.
#define SMWDTHROSC_WDCTL_CLR_3
Clear timer mask[3].