Dylan Yao:
Move to MCU forum.
Michael Sun:
share一个看门狗的例程给你吧:
void InitWatchDog(void){ SysCtlPeripheralEnable(SYSCTL_PERIPH_WDOG0); WatchdogReloadSet(WATCHDOG0_BASE, SysCtlClockGet()); WatchdogResetEnable(WATCHDOG0_BASE); WatchdogStallEnable(WATCHDOG0_BASE); WatchdogEnable(WATCHDOG0_BASE);}
void FeedDog(void){ WatchdogReloadSet(WATCHDOG0_BASE, SysCtlClockGet());}