Marlin_Firmware/Marlin/watchdog.h
2015-11-12 00:03:22 -06:00

15 lines
346 B
C

#ifndef WATCHDOG_H
#define WATCHDOG_H
#include "Marlin.h"
#include <avr/wdt.h>
// 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(); }
#endif