Browse Source

Fix BTT SKR Pro 1.0 UART4/5 (#18222)

Alexander Amelkin 4 years ago
parent
commit
8994cc8b26
No account linked to committer's email address
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      Marlin/src/HAL/STM32/MarlinSerial.cpp

+ 8
- 0
Marlin/src/HAL/STM32/MarlinSerial.cpp View File

@@ -26,6 +26,14 @@
26 26
   #include "../../feature/e_parser.h"
27 27
 #endif
28 28
 
29
+#ifndef USART4
30
+  #define USART4 UART4
31
+#endif
32
+
33
+#ifndef USART5
34
+  #define USART5 UART5
35
+#endif
36
+
29 37
 #define DECLARE_SERIAL_PORT(ser_num) \
30 38
   void _rx_complete_irq_ ## ser_num (serial_t * obj); \
31 39
   MarlinSerial MSerial ## ser_num (USART ## ser_num, &_rx_complete_irq_ ## ser_num); \

Loading…
Cancel
Save