Skip to content

Commit

Permalink
usbd: Implement USB-CDC serial class.
Browse files Browse the repository at this point in the history
This is a squash of commits from branch feature/usbd_python_cdc which
includes an initial implementation by @hoihu and bug fixes from @linted.

Includes:

- Some usbd device behaviour changes to manage transfers.

- A new reader/writer "Buffer" class designed for providing buffered data
  to/from TinyUSB.

- cdc_example.py opens a REPL on the dynamic USB CDC interface.

- cdc_rate_benchmark.py is an update of the original PyBoard VCP benchmark
  code.

Parts of this work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <[email protected]>
  • Loading branch information
projectgus committed Oct 5, 2023
1 parent 6def4bb commit d6da573
Show file tree
Hide file tree
Showing 8 changed files with 1,028 additions and 10 deletions.
1 change: 1 addition & 0 deletions micropython/usbd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .device import get_usbdevice, USBInterface
from .hid import HIDInterface, MouseInterface
from .midi import DummyAudioInterface, MIDIInterface, MidiUSB
from .cdc import CDC
from . import utils
Loading

0 comments on commit d6da573

Please sign in to comment.