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

@ -31,7 +31,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../HAL.h"
#include "HAL.h"
#include <STM32ADC.h>
//#include <Wire.h>

View File

@ -28,6 +28,7 @@
#ifndef _HAL_STM32F1_H
#define _HAL_STM32F1_H
#define CPU_32_BIT
#undef DEBUG_NONE
#ifndef vsnprintf_P
@ -55,6 +56,9 @@
// Includes
// --------------------------------------------------------------------------
#include "../math_32bit.h"
#include "../HAL_SPI.h"
#include "fastio_Stm32f1.h"
#include "watchdog_Stm32f1.h"

View File

@ -36,7 +36,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../HAL.h"
#include "HAL.h"
#include "../HAL_SPI.h"
#include "pins_arduino.h"
#include "spi_pins.h"

View File

@ -30,7 +30,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../HAL.h"
#include "HAL.h"
#include "HAL_timers_Stm32f1.h"

View File

@ -49,6 +49,17 @@
#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(); }
void setup_endstop_interrupts(void) {
#if HAS_X_MAX
SET_INPUT(X_MAX_PIN);

View File

@ -0,0 +1 @@
#error Debug pins is not supported on this Platform!