This is really a comment to Paul.
On multiple occasions Paul pointed out the difference between Serial and Serial1. The first one using USB the second one RX1,TX1 (right?).
So far so good.
In fact the Teensy3/core has a file serial1.c, BUT, inside the functions are serial_begin, etc (without the 1) and the usb_serial file has the functions with prefix 'usb_'.
While, I have not difficulties to remember the prefix 'usb_serial_available', when I wanted to use USB and 'serial_available' (without the 1), when I wanted to use serial1, or 'serial2_avalable' (with the 2) when using serial2, it is somewhat inconsistent.
I do not know, if backward compatibility forbids the addition of '1' inside the serial1.c file, but sometimes the notation should be consistent.
BTW there is no 'HardwareSerial1' but only a 'HardwareSerial' class (without the 1). so it is not only a 'C' question.
Walter
On multiple occasions Paul pointed out the difference between Serial and Serial1. The first one using USB the second one RX1,TX1 (right?).
So far so good.
In fact the Teensy3/core has a file serial1.c, BUT, inside the functions are serial_begin, etc (without the 1) and the usb_serial file has the functions with prefix 'usb_'.
While, I have not difficulties to remember the prefix 'usb_serial_available', when I wanted to use USB and 'serial_available' (without the 1), when I wanted to use serial1, or 'serial2_avalable' (with the 2) when using serial2, it is somewhat inconsistent.
I do not know, if backward compatibility forbids the addition of '1' inside the serial1.c file, but sometimes the notation should be consistent.
BTW there is no 'HardwareSerial1' but only a 'HardwareSerial' class (without the 1). so it is not only a 'C' question.
Walter