From 8994cc8b261d904a6e8813780f4328a2bf236750 Mon Sep 17 00:00:00 2001 From: Alexander Amelkin Date: Mon, 8 Jun 2020 11:04:52 +0300 Subject: [PATCH] Fix BTT SKR Pro 1.0 UART4/5 (#18222) --- Marlin/src/HAL/STM32/MarlinSerial.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Marlin/src/HAL/STM32/MarlinSerial.cpp b/Marlin/src/HAL/STM32/MarlinSerial.cpp index 1961791e22..65ef91e31d 100644 --- a/Marlin/src/HAL/STM32/MarlinSerial.cpp +++ b/Marlin/src/HAL/STM32/MarlinSerial.cpp @@ -26,6 +26,14 @@ #include "../../feature/e_parser.h" #endif +#ifndef USART4 + #define USART4 UART4 +#endif + +#ifndef USART5 + #define USART5 UART5 +#endif + #define DECLARE_SERIAL_PORT(ser_num) \ void _rx_complete_irq_ ## ser_num (serial_t * obj); \ MarlinSerial MSerial ## ser_num (USART ## ser_num, &_rx_complete_irq_ ## ser_num); \