我看了提供的历程,看门狗的初始化时配置默认的参数,请问,这个看门狗多久没有喂狗会复位?这个时间一直没有找到。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我看了提供的历程,看门狗的初始化时配置默认的参数,请问,这个看门狗多久没有喂狗会复位?这个时间一直没有找到。
是的,一秒钟 ,可以设置,
Watchdog_setReload(watchdogHandle, 3*1500000); // 3s, per 1500000= 1sec
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)
仔细看参数请勿重复发帖,谢谢。