OK, I figured it out. Posting here for anyone else who has a similar issue.
In the variable declarations, I replaced the line:
HardwareSerial* ESCCMD_serial[ESCCMD_NB_UART] = {
with:
HardwareSerialIMXRT* ESCCMD_serial[ESCCMD_NB_UART] = {...
I'm writing (or, rather, copying from other people) some code for a Teensy 4.0/4.1, using PlatformIO.
Some known to be good code contains the following line:
ESCCMD_serial->clear( );
When I build it, I get the following error:
error: 'class...