arduino/Arduino — pull request #1953 by pbrook (2014-03-22 15:21:15+00:00)
Title: Improve CDC read code

Remove superfluous ring buffer from the CDC read code. The USB hardware already buffers 128 bytes of data, so just read from that on demand.

The result is smaller, faster, uses substantially less ram, and does not do large data copies in an interrupt handler.