Browse Source

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

vanilla_fb_2.0.x
Alexander Amelkin 5 years ago
committed by GitHub
parent
commit
8994cc8b26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Marlin/src/HAL/STM32/MarlinSerial.cpp

8
Marlin/src/HAL/STM32/MarlinSerial.cpp

@ -26,6 +26,14 @@
#include "../../feature/e_parser.h" #include "../../feature/e_parser.h"
#endif #endif
#ifndef USART4
#define USART4 UART4
#endif
#ifndef USART5
#define USART5 UART5
#endif
#define DECLARE_SERIAL_PORT(ser_num) \ #define DECLARE_SERIAL_PORT(ser_num) \
void _rx_complete_irq_ ## ser_num (serial_t * obj); \ void _rx_complete_irq_ ## ser_num (serial_t * obj); \
MarlinSerial MSerial ## ser_num (USART ## ser_num, &_rx_complete_irq_ ## ser_num); \ MarlinSerial MSerial ## ser_num (USART ## ser_num, &_rx_complete_irq_ ## ser_num); \

Loading…
Cancel
Save