看门狗 TE AD TI inter BLE
关于看门狗的问题请教各位大佬
请问自带的喂狗函数这为什么要赋值2遍啊?如果我需要通过喂错误的狗来进行系统复位可以直接随便给WDG->CNT个值吗?
* @brief feed WDG, trig timeout counter to 0
*
* @param[in] none
* @return none
*/
__STATIC_INLINE void WDG_Feed(void)
{
DisableInterrupts;
WDG->CNT = 0x7908AD15;
WDG->CNT = 0x5AD5A879;
EnableInterrupts;
}
您需要登录后才可以回复 登录 | 注册