Alexander Amelkin
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
-
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); \ |
|
|