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

@ -9,7 +9,7 @@
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright <EFBFBD> 2016 STMicroelectronics International N.V.
* <h2><center>&copy; Copyright © 2016 STMicroelectronics International N.V.
* All rights reserved.</center></h2>
*
* Redistribution and use in source and binary forms, with or without
@ -54,7 +54,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../../../inc/MarlinConfig.h"
#include "../../HAL.h"
#include "../HAL.h"
/* Exported constants --------------------------------------------------------*/
/* EEPROM emulation firmware error codes */

View File

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

View File

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

View File

@ -26,6 +26,7 @@
#ifndef _HAL_STM32F7_H
#define _HAL_STM32F7_H
#define CPU_32_BIT
#undef DEBUG_NONE
#ifndef vsnprintf_P
@ -40,6 +41,9 @@
#include "Arduino.h"
#include "../math_32bit.h"
#include "../HAL_SPI.h"
#include "fastio_STM32F7.h"
#include "watchdog_STM32F7.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

@ -26,7 +26,7 @@
// Includes
// --------------------------------------------------------------------------
#include "../HAL.h"
#include "HAL.h"
#include "HAL_timers_STM32F7.h"

View File

@ -26,6 +26,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
pinMode(X_MAX_PIN, INPUT);

View File

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