USB to Serial with RS485 driver control
Based on ST's app note and the existing examples.
This relies on https://github.com/libopencm3/libopencm3/pull/246 being merged, and this pull cannot be merged without it, as it doesn't include the update of the submodule. It is here in it's present form for review, but will be updated with the submodule update later.
This also starts to split up some of the usb cdcd code that is copypasta all over the examples tree to have more chunks that can be shared
:-1: This is missing a file that didn't get added to git, will fix and resubmit
This is now ready to go, and the dependent changes are in the library now too.
Nice piece of code.
:red_circle: I've had a few problems with bulk transfers through this, so hold off on it for now, need to figure out if it's a problem with my host app or this code first :(
I've revisited this, and it's definitely a problem in this code. zmodem transfers don't seem to work being sent from this firmware, but it will receive ok at lower baud rates, with lots of errors. Probably not handling usb properly?