XMegaForArduino / arduino

required (and optional) source files for the Arduino development environment, specifically the hardware/arduino sub-directory, to support xmega processors
19 stars 17 forks source link

Refactor USB implementation to make it smaller, faster, better #34

Open bombasticbob opened 7 years ago

bombasticbob commented 7 years ago

Some serious re-factoring is needed in the USB implementation, which is now in a state typical of an "I just got this working" program, with hacks and test code and debug stuff all over the place.

Unsubmitted refactoring already drops the memory footprint by at least 1K and clarifies a few other spots in the code "much better than before". This issue remains open as a reminder to make the USB code more solid, easy to understand, and easy to maintain.