Clean up some HAL code
This commit is contained in:
@ -22,12 +22,14 @@
|
||||
|
||||
#ifdef ARDUINO_ARCH_AVR
|
||||
|
||||
#include "../../../Marlin.h"
|
||||
#include "../../../MarlinConfig.h"
|
||||
|
||||
#if ENABLED(USE_WATCHDOG)
|
||||
|
||||
#include "watchdog_AVR.h"
|
||||
|
||||
#include "../../../Marlin.h"
|
||||
|
||||
// Initialize watchdog with a 4 sec interrupt time
|
||||
void watchdog_init() {
|
||||
#if ENABLED(WATCHDOG_RESET_MANUAL)
|
||||
|
@ -23,8 +23,6 @@
|
||||
#ifndef WATCHDOG_AVR_H
|
||||
#define WATCHDOG_AVR_H
|
||||
|
||||
//#include "../../../Marlin.h"
|
||||
|
||||
#include <avr/wdt.h>
|
||||
|
||||
// Initialize watchdog with a 4 second interrupt time
|
||||
@ -34,4 +32,4 @@ void watchdog_init();
|
||||
// first watchdog_init or AVR will go into emergency procedures.
|
||||
inline void watchdog_reset() { wdt_reset(); }
|
||||
|
||||
#endif
|
||||
#endif // WATCHDOG_AVR_H
|
||||
|
Reference in New Issue
Block a user