1.头文件和变量定义
bool g_bFeedWatchdog = true; #include "driverlib/watchdog.h"
2.初始化
// Watchdog Init SysCtlPeripheralEnable(SYSCTL_PERIPH_WDOG0); // Enable the watchdog interrupt. IntEnable(INT_WATCHDOG); // set the watchdog timer frequency WatchdogReloadSet(WATCHDOG0_BASE, SysCtlClockGet()/