ERROR_CODE ineedmd_watchdog_doorbell(void) { #ifdef USING_TIRTOS ERROR_CODE eEC = ER_OK; return eEC; #else ERROR_CODE eEC = ER_OK; //Disable the stall even if it was enabled for debug MAP_WatchdogStallDisable(WD_BASE); //set the watchdog timer to zero MAP_WatchdogReloadSet(WD_BASE, WD_BARK); //release the hounds while(1){}; //Should never get here return eEC; #endif }
//**************************************************************************** // //! DeInitialize the watchdog timer //! //! \param None //! //! This function //! 1. DeInitializes the WDT //! //! \return None. // //**************************************************************************** void WDT_IF_DeInit() { // // Unlock to be able to configure the registers // MAP_WatchdogUnlock(WDT_BASE); // // Disable stalling of the watchdog timer during debug events // MAP_WatchdogStallDisable(WDT_BASE); // // Clear the interrupt // MAP_WatchdogIntClear(WDT_BASE); // // Unregister the interrupt // MAP_WatchdogIntUnregister(WDT_BASE); }