Support a third serial port (#21784)
This commit is contained in:
@@ -607,6 +607,14 @@
|
||||
#error "SERIAL_PORT must be defined."
|
||||
#elif defined(SERIAL_PORT_2) && SERIAL_PORT_2 == SERIAL_PORT
|
||||
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT."
|
||||
#elif defined(SERIAL_PORT_3)
|
||||
#ifndef SERIAL_PORT_2
|
||||
#error "Use SERIAL_PORT_2 before using SERIAL_PORT_3"
|
||||
#elif SERIAL_PORT_3 == SERIAL_PORT
|
||||
#error "SERIAL_PORT_3 cannot be the same as SERIAL_PORT."
|
||||
#elif SERIAL_PORT_3 == SERIAL_PORT_2
|
||||
#error "SERIAL_PORT_3 cannot be the same as SERIAL_PORT_2."
|
||||
#endif
|
||||
#endif
|
||||
#if !(defined(__AVR__) && defined(USBCON))
|
||||
#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
||||
|
Reference in New Issue
Block a user