Building 3.6 USB types without serial - best practice?

Status
Not open for further replies.

curiousjp

Member
A while ago I forked Paul’s core to add a new USB type that emulates a particular legacy joystick. It works well, but for reasons relating to the host USB stack, it cannot use USB serial. That’s fine - when I’ve needed to debug, I can use the hardware UARTs.

But when other people try to build they run into trouble as teensyduino continues to grow and develop, because other code outside the core - eg the antplus library - expects Serial.printf etc to be defined. I can give them a patch, but eventually it breaks again when something else changes. Is there a canonical way to tell the entire system that I want it to stay away from serial interface zero, or should I see if I can create my own do-nothing functions for this in the core? Thanks!
 
Wonder if you built a version with Joystick and RawHid if that would work, then debug could still go through Serial.print type code...
 
Status
Not open for further replies.
Back
Top