I had a little time to try out the new serial variant.
At first: Congrats, you nearly did it!
Please change in the nucleo boards.cpp the new lines to:
Code: Select all
#ifdef SERIAL_USB DEFINE_HWSERIAL(Serial1, 1); DEFINE_HWSERIAL(Serial2, 2); DEFINE_HWSERIAL(Serial3, 3); #else DEFINE_HWSERIAL(Serial, 3);// Use HW Serial 2 as "Serial" DEFINE_HWSERIAL(Serial1, 2); DEFINE_HWSERIAL(Serial2, 1); #endif
As I promised, I also tested the maple mini with the new code, so I inserted the same #includes and #ifdefs into the maple mini boards.cpp. As expected all serials are working and are in the right order!
So I give my "OK" to the changes.