Skip to content

Commit 40d1674

Browse files
committed
usbd: Implement USB-CDC serial class.
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]>
1 parent 960000b commit 40d1674

File tree

8 files changed

+1027
-9
lines changed

8 files changed

+1027
-9
lines changed

micropython/usbd/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from .device import get_usbdevice, USBInterface
22
from .hid import HIDInterface, MouseInterface
33
from .midi import DummyAudioInterface, MIDIInterface, MidiUSB
4+
from .cdc import CDC
45
from . import utils

0 commit comments

Comments
 (0)