Use a macro for HAL header redirection (#10380)
This commit is contained in:
committed by
Scott Lahteine
parent
12785583d0
commit
cc6d41e1d3
@ -31,7 +31,7 @@
|
||||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../HAL.h"
|
||||
#include "HAL.h"
|
||||
#include <STM32ADC.h>
|
||||
|
||||
//#include <Wire.h>
|
@ -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"
|
||||
|
@ -36,7 +36,7 @@
|
||||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../HAL.h"
|
||||
#include "HAL.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "pins_arduino.h"
|
||||
#include "spi_pins.h"
|
||||
|
@ -30,7 +30,7 @@
|
||||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../HAL.h"
|
||||
#include "HAL.h"
|
||||
|
||||
#include "HAL_timers_Stm32f1.h"
|
||||
|
||||
|
@ -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);
|
||||
|
1
Marlin/src/HAL/HAL_STM32F1/pinsDebug.h
Normal file
1
Marlin/src/HAL/HAL_STM32F1/pinsDebug.h
Normal file
@ -0,0 +1 @@
|
||||
#error Debug pins is not supported on this Platform!
|
Reference in New Issue
Block a user