CC2640R2F 看门狗问题

举人 1360 points

Watchdog_Handle whandle;
void Init_ Watchdog(void)
{
Watchdog_Params params;
uint32_t tickValue;
Watchdog_init();
Watchdog_Params_init(&params);
params.callbackFxn = watchdogCallback;
whandle = Watchdog_open(0, &params);
tickValue = Watchdog_convertMsToTicks(whandle, 2500);
Watchdog_setReload(whandle, tickValue);
}

void watchdogCallback(uintptr_t handle)
{
Watchdog_clear(whandle);
}

我是按照上面配置看门狗的, 用while(1);卡死测试, 但是没有复位, 这样配置看门狗有问题吗?

1 个回复