/******************************************************************************************************************* *File Name : watchdog.h *Description : the file is driver for watchdog *Date : 2008/06/16 *Author : yuanguiyou --History: ------------------------------------------------------------------------------------------------------------------ *change info: *******************************************************************************************************************/ #ifndef WATCHDOG_H #define WATCHDOG_H #include "drvbase.h" /*! * \brief Start the watch dog timer. * * This function can be used by applications to prevent hang-ups. * * \param ms Watch dog time out in milliseconds. * \return The actual time out value, which may differ from the * specified value due to hardware limitations. The watch * dog timer will be automatically enabled on return. */ u32 WatchDogStart(u32 ms); /*Restart the watch dog timer.*/ void WatchDogRestart(void); /*Disables the watch dog timer.*/ void WatchDogDisable(void); /*! * \brief Enables the watch dog timer. * * The function can be safely used within nested subroutines. * The watch dog will be enabled only, if this function is called * the same number of times as WatchDogDisable(). If enabled, * the watch dog timer will also have been re-started and the * full time out value is available before another WatchDogRestart() * is required. * * If the watch has not been started by WatchDogStart(), then this * function does nothing. */ void WatchDogEnable(void); #endif