Marlin_Firmware/Marlin/watchdog.h

15 lines
346 B
C
Raw Normal View History

2012-06-02 13:44:17 -05:00
#ifndef WATCHDOG_H
#define WATCHDOG_H
2011-12-22 05:38:50 -06:00
#include "Marlin.h"
2015-10-13 05:57:36 -05:00
#include <avr/wdt.h>
2011-11-06 08:10:29 -06:00
2015-10-13 05:57:36 -05:00
// Initialize watchdog with a 4 second interrupt time
void watchdog_init();
// Reset watchdog. MUST be called at least every 4 seconds after the
// first watchdog_init or AVR will go into emergency procedures.
inline void watchdog_reset() { wdt_reset(); }
2011-11-06 07:58:12 -06:00
#endif