SoftwareSerialM for SKR STM32F1 boards (#15875)

This commit is contained in:
Jason Smith
2019-11-12 20:16:54 -08:00
committed by Scott Lahteine
parent 8e7d1004cf
commit 9fd35c84ce
21 changed files with 39 additions and 30 deletions

View File

@@ -36,13 +36,13 @@
#if HAS_SWSERIAL
#include "SoftwareSerial.h"
#endif
#endif
#if ENABLED(SRAM_EEPROM_EMULATION)
#if STM32F7xx
#include "stm32f7xx_ll_pwr.h"
#include <stm32f7xx_ll_pwr.h>
#elif STM32F4xx
#include "stm32f4xx_ll_pwr.h"
#include <stm32f4xx_ll_pwr.h>
#else
#error "SRAM_EEPROM_EMULATION is currently only supported for STM32F4xx and STM32F7xx"
#endif

View File

@@ -91,7 +91,7 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
// This is fixed in Arduino_Core_STM32 1.8.
// These calls can be removed and replaced with
// timer_instance[timer_num]->setInterruptPriority
switch (timer_num) {
switch (timer_num) {
case STEP_TIMER_NUM:
HAL_NVIC_SetPriority(STEP_TIMER_IRQ_NAME, STEP_TIMER_IRQ_PRIO, 0);
break;