CC1310如何将watchdog timeout reset 设置成系统复位?只是修改datasheet上提到的寄存器就可以吗?还有其他要修改的地方吗?我如何知道设置是否成功?
Susan Yang:
您可以使用Watchdog_setReload,请参考如下代码
Watchdog_Params_init(¶ms);
params.callbackFxn = (Watchdog_Callback)watchdogCallback;
params.resetMode = Watchdog_RESET_ON;watchdogHandle = Watchdog_open(Board_WATCHDOG0, ¶ms);
Watchdog_setReload(watchdogHandle,1500000);//1sec (WDT runs always at 48MHz/32)希望对您有所帮助!