47 #include "dev/watchdog.h" 51 #include <ti/drivers/Watchdog.h> 56 #define WATCHDOG_DISABLE WATCHDOG_CONF_DISABLE 57 #define WATCHDOG_TIMER_TOP WATCHDOG_CONF_TIMER_TOP 59 static Watchdog_Handle wdt_handle;
70 if(WATCHDOG_DISABLE) {
76 Watchdog_Params wdt_params;
77 Watchdog_Params_init(&wdt_params);
79 wdt_params.resetMode = Watchdog_RESET_ON;
80 wdt_params.debugStallMode = Watchdog_DEBUG_STALL_ON;
82 wdt_handle = Watchdog_open(Board_WATCHDOG0, &wdt_params);
91 if(WATCHDOG_DISABLE) {
104 if(WATCHDOG_DISABLE) {
108 Watchdog_setReload(wdt_handle, WATCHDOG_TIMER_TOP);
118 if(WATCHDOG_DISABLE) {
122 Watchdog_clear(wdt_handle);
131 if(WATCHDOG_DISABLE) {
void watchdog_reboot(void)
Manually trigger a Watchdog timeout.
void watchdog_init(void)
Initialises the Watchdog module.
void watchdog_periodic(void)
Refresh (feed) the Watchdog.
void watchdog_stop(void)
Stop the Watchdog such that it won't timeout and cause a system reset.
void watchdog_start(void)
Start the Watchdog.