Data loss when sending to native USB port (SerialUSB)

This is an updated version of the alternative USB serial code. This fixes one of the problems I was having with the receive_test benchmark and fixes a memory corruption bug.

CDC.cpp (7.84 KB)

USBAPI.h (7.07 KB)

USBCore.cpp (22.7 KB)