Permalink
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (14 sloc) 399 Bytes
#ifndef _WATCHDOG_H
#define _WATCHDOG_H
#include "config.h"
#ifdef USE_WATCHDOG
// initialize
void wd_init(void) __attribute__ ((cold));
// reset timeout- must be called periodically or we reboot
void wd_reset(void);
// notable lack of disable function
#else /* USE_WATCHDOG */
#define wd_init() /* empty */
#define wd_reset() /* empty */
#endif /* USE_WATCHDOG */
#endif /* _WATCHDOG_H */