Fix STM32 + SoftwareSerial compile (#17831)

This commit is contained in:
Jason Smith
2020-05-02 15:24:51 -07:00
committed by GitHub
parent 52f3f3b5ab
commit 208af8cb15
6 changed files with 23 additions and 15 deletions

View File

@@ -27,10 +27,6 @@
#include "../../inc/MarlinConfig.h"
#include "../shared/Delay.h"
#if HAS_TMC_SW_SERIAL
#include "SoftwareSerial.h"
#endif
#if ENABLED(SRAM_EEPROM_EMULATION)
#if STM32F7xx
#include <stm32f7xx_ll_pwr.h>
@@ -82,11 +78,7 @@ void HAL_init() {
while (!LL_PWR_IsActiveFlag_BRR()); // Wait until backup regulator is initialized
#endif
#if HAS_TMC_SW_SERIAL
SoftwareSerial::setInterruptPriority(SWSERIAL_TIMER_IRQ_PRIO, 0);
#endif
TERN_(HAS_TMC_SW_SERIAL, SoftwareSerial::setInterruptPriority(SWSERIAL_TIMER_IRQ_PRIO, 0));
SetSoftwareSerialTimerInterruptPriority();
}
void HAL_clear_reset_source() { __HAL_RCC_CLEAR_RESET_FLAGS(); }