Use a macro for HAL header redirection (#10380)
This commit is contained in:
committed by
Scott Lahteine
parent
12785583d0
commit
cc6d41e1d3
@ -9,7 +9,7 @@
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© Copyright <EFBFBD> 2016 STMicroelectronics International N.V.
|
||||
* <h2><center>© 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 */
|
||||
|
@ -30,7 +30,7 @@
|
||||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../HAL.h"
|
||||
#include "HAL.h"
|
||||
#include "EEPROM_Emul/eeprom_emul.h"
|
||||
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../HAL.h"
|
||||
#include "HAL.h"
|
||||
|
||||
//#include <Wire.h>
|
||||
|
@ -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"
|
||||
|
@ -36,7 +36,7 @@
|
||||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../HAL.h"
|
||||
#include "HAL.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "pins_arduino.h"
|
||||
#include "spi_pins.h"
|
||||
|
@ -26,7 +26,7 @@
|
||||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../HAL.h"
|
||||
#include "HAL.h"
|
||||
|
||||
#include "HAL_timers_STM32F7.h"
|
||||
|
||||
|
@ -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);
|
||||
|
1
Marlin/src/HAL/HAL_STM32F7/pinsDebug.h
Normal file
1
Marlin/src/HAL/HAL_STM32F7/pinsDebug.h
Normal file
@ -0,0 +1 @@
|
||||
#error Debug pins is not supported on this Platform!
|
Reference in New Issue
Block a user