/*********************************************************************//** * @brief Enable/Disable WWDT activity. In case of Enable, it will * do feeding WatchDog for its normal operation. * * @param[in] NewState To enable/disable the WatchDog * * @return None **********************************************************************/ void WWDT_Cmd(FunctionalState NewState) { if(NewState == ENABLE) { LPC_WDT->MOD |= WWDT_WDMOD_WDEN; //Load the Feed register to start using WDT WWDT_Feed(); } else { LPC_WDT->MOD &= ~WWDT_WDMOD_WDEN; } }
/*********************************************************************//** * @brief Enable WWDT activity * @param[in] None * @return None **********************************************************************/ void WWDT_Start(void) { LPC_WWDT->MOD |= WWDT_WDMOD_WDEN; WWDT_Feed(); }