Browse Source

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

Alexander Amelkin 5 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
   #include "../../feature/e_parser.h"
26
   #include "../../feature/e_parser.h"
27
 #endif
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
 #define DECLARE_SERIAL_PORT(ser_num) \
37
 #define DECLARE_SERIAL_PORT(ser_num) \
30
   void _rx_complete_irq_ ## ser_num (serial_t * obj); \
38
   void _rx_complete_irq_ ## ser_num (serial_t * obj); \
31
   MarlinSerial MSerial ## ser_num (USART ## ser_num, &_rx_complete_irq_ ## ser_num); \
39
   MarlinSerial MSerial ## ser_num (USART ## ser_num, &_rx_complete_irq_ ## ser_num); \

Loading…
Cancel
Save