Use a macro for HAL header redirection (#10380)

This commit is contained in:
Chris Pepper
2018-04-13 02:25:08 +01:00
committed by Scott Lahteine
parent 12785583d0
commit cc6d41e1d3
51 changed files with 152 additions and 285 deletions

View File

@ -29,7 +29,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../HAL.h"
#include "HAL.h"
#include <Wire.h>
#include "usb/usb_task.h"

View File

@ -29,10 +29,14 @@
#ifndef _HAL_DUE_H
#define _HAL_DUE_H
#define CPU_32_BIT
#include <stdint.h>
#include <Arduino.h>
#include "../math_32bit.h"
#include "../HAL_SPI.h"
#include "fastio_Due.h"
#include "watchdog_Due.h"
#include "HAL_timers_Due.h"

View File

@ -32,7 +32,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../HAL.h"
#include "HAL.h"
#include "HAL_timers_Due.h"

View File

@ -32,7 +32,7 @@
*/
#ifdef ARDUINO_ARCH_SAM
#include "HAL_Due.h"
#include "HAL.h"
#include "InterruptVectors_Due.h"
/* The relocated Exception/Interrupt Table - According to the ARM

View File

@ -27,7 +27,7 @@
#ifdef ARDUINO_ARCH_SAM
#include "HAL_Due.h"
#include "HAL.h"
#include "HAL_timers_Due.h"
static pin_t tone_pin;

View File

@ -34,8 +34,19 @@
* (Located in Marlin/buildroot/share/pin_interrupt_test/pin_interrupt_test.ino)
*/
#ifndef _ENDSTOP_INTERRUPTS_H_
#define _ENDSTOP_INTERRUPTS_H_
#ifndef _ENDSTOP_INTERRUPTS_H_
#define _ENDSTOP_INTERRUPTS_H_
volatile uint8_t e_hit = 0; // Different from 0 when the endstops should be tested in detail.
// Must be reset to 0 by the test function when finished.
// This is what is really done inside the interrupts.
FORCE_INLINE void endstop_ISR_worker( void ) {
e_hit = 2; // Because the detection of a e-stop hit has a 1 step debouncer it has to be called at least twice.
}
// One ISR for all EXT-Interrupts
void endstop_ISR(void) { endstop_ISR_worker(); }
/**
* Endstop interrupts for Due based targets.

View File

@ -25,7 +25,7 @@
// Arduino Due core now has watchdog support
#include "../HAL.h"
#include "HAL.h"
// Initialize watchdog with a 4 second interrupt time
void watchdog_init();