/* --------------------------------------------------------------------------- * watchdog.h - v0.1 (c) 2007 Micro-key bv * --------------------------------------------------------------------------- * Micro-key bv * Industrieweg 28, 9804 TG Noordhorn * Postbus 92, 9800 AB Zuidhorn * The Netherlands * Tel: +31 594 503020 * Fax: +31 594 505825 * Email: support@microkey.nl * Web: www.microkey.nl * --------------------------------------------------------------------------- * Description: Watchdog interface. * --------------------------------------------------------------------------- * Version(s): 0.1, 10-09-2007, Marcel Mulder. * Creation. * --------------------------------------------------------------------------- */ #ifndef __WATCHDOG_H__ #define __WATCHDOG_H__ /** \file watchdog.h \brief Watchdog functionality. Once the watchdog is enable, it cannot be disabled. */ /* --------------------------------------------------------------------------- * System include files. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Application include files. * --------------------------------------------------------------------------- */ #include "lpc23xx.h" #include "types.h" /* --------------------------------------------------------------------------- * Constant and macro definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Type definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Variable declarations. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Function declarations. * --------------------------------------------------------------------------- */ /** \brief Enable the watchdog */ void watchdogEnable( UINT16 resetTime /**< Time in ms till watchdog will reset target when not fed in meantime */ ); /** \brief Feed the watchdog in order to prevent a reset */ void watchdogFeed( void ); /** \brief Indicates whether the CPU is reset by the watchdog */ BOOLEAN watchdogCausedReset(); #endif /* __WATCHDOG_H__ */