HAL/serial followup

This commit is contained in:
Scott Lahteine
2020-09-23 21:36:31 -05:00
parent 4b928b2da8
commit 568f292883
6 changed files with 13 additions and 6 deletions

View File

@ -86,7 +86,6 @@ typedef int8_t pin_t;
#if !WITHIN(SERIAL_PORT, -1, 3)
#error "SERIAL_PORT must be from -1 to 3. Please update your configuration."
#endif
#define MYSERIAL0 customizedSerial1
#ifdef SERIAL_PORT_2

View File

@ -50,7 +50,7 @@
#if SERIAL_PORT_2 == -1
#define MYSERIAL1 Serial
#elif WITHIN(SERIAL_PORT_2, 0, 3)
#define MYSERIAL0 MSERIAL(SERIAL_PORT_2)
#define MYSERIAL1 MSERIAL(SERIAL_PORT_2)
#else
#error "SERIAL_PORT_2 must be from -1 to 3. Please update your configuration."
#endif

View File

@ -108,7 +108,7 @@
#endif
#endif
#ifdef DGUS_SERIAL
#ifdef DGUS_SERIAL_PORT
#if DGUS_SERIAL_PORT == 0
#error "DGUS_SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration."
#elif DGUS_SERIAL_PORT == SERIAL_PORT

View File

@ -66,7 +66,7 @@
#if SERIAL_PORT_2 == -1
#define MYSERIAL1 usbSerial
#elif WITHIN(SERIAL_PORT_2, 0, 8)
#define MYSERIAL0 MSERIAL(SERIAL_PORT_2)
#define MYSERIAL1 MSERIAL(SERIAL_PORT_2)
#else
#error "SERIAL_PORT_2 must be from -1 to 8. Please update your configuration."
#endif