HAL updates

This commit is contained in:
Scott Lahteine
2017-09-06 06:28:32 -05:00
parent 65996e4235
commit 54326fb06a
52 changed files with 327 additions and 378 deletions

View File

@ -74,9 +74,15 @@
#define strncpy_P(dest, src, num) strncpy((dest), (src), (num))
#endif
#ifndef vsnprintf_P
#define vsnprintf_P vsnprintf
#endif
// Fix bug in pgm_read_ptr
#undef pgm_read_ptr
#define pgm_read_ptr(addr) (*(addr))
#define pgm_read_ptr(addr) (*((void**)(addr)))
#undef pgm_read_word
#define pgm_read_word(addr) (*((uint16_t*)(addr)))
#define RST_POWER_ON 1
#define RST_EXTERNAL 2

View File

@ -37,7 +37,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../../../MarlinConfig.h"
#include "../../inc/MarlinConfig.h"
// --------------------------------------------------------------------------
// Public Variables

View File

@ -40,7 +40,7 @@
#ifdef ARDUINO_ARCH_SAM
#include "../../../MarlinConfig.h"
#include "../../inc/MarlinConfig.h"
#if HAS_SERVOS

View File

@ -2,10 +2,7 @@
#include "../persistent_store_api.h"
#include "../../../types.h"
#include "../../../language.h"
#include "../../../serial.h"
#include "../../../utility.h"
#include "../../inc/MarlinConfig.h"
#if ENABLED(EEPROM_SETTINGS)

View File

@ -22,7 +22,7 @@
#ifdef ARDUINO_ARCH_SAM
#include "../../../MarlinConfig.h"
#include "../../inc/MarlinConfig.h"
#if ENABLED(USE_WATCHDOG)

View File

@ -23,10 +23,10 @@
#ifndef WATCHDOG_DUE_H
#define WATCHDOG_DUE_H
//#include "../../../Marlin.h"
// Arduino Due core now has watchdog support
#include "../HAL.h"
// Initialize watchdog with a 4 second interrupt time
void watchdog_init();
@ -34,4 +34,4 @@ void watchdog_init();
// first watchdog_init or AVR will go into emergency procedures.
inline void watchdog_reset() { watchdogReset(); }
#endif /* WATCHDOG_DUE_H */
#endif // WATCHDOG_DUE_H