Clean up some HAL code

This commit is contained in:
Scott Lahteine
2017-08-31 17:30:43 -05:00
parent b29b66feda
commit 27cbb939b2
12 changed files with 140 additions and 164 deletions

View File

@ -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)

View File

@ -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