mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-11 21:14:34 +00:00
15 lines
346 B
C
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
|