/** * @brief IRQ Handler for WDT Interrupt * * @param None * * @return None * * @details The WDT_IRQHandler is default IRQ of WDT, declared in startup_M451Series.s. */ void WDT_IRQHandler(void) { if(g_u32WDTINTCounts < 10) WDT_RESET_COUNTER(); if(WDT_GET_TIMEOUT_INT_FLAG() == 1) { /* Clear WDT time-out interrupt flag */ WDT_CLEAR_TIMEOUT_INT_FLAG(); g_u32WDTINTCounts++; } if(WDT_GET_TIMEOUT_WAKEUP_FLAG() == 1) { /* Clear WDT time-out wake-up flag */ WDT_CLEAR_TIMEOUT_WAKEUP_FLAG(); g_u8IsWDTWakeupINT = 1; } }
//========================================================================= //----- (00001380) -------------------------------------------------------- __myevic__ void ResetWatchDog() { SYS_UnlockReg(); WDT_RESET_COUNTER(); SYS_LockReg(); }