Skip to content

Commit d6da573

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 <angus@redyak.com.au>
1 parent 6def4bb commit d6da573

File tree

8 files changed

+1028
-10
lines changed

8 files changed

+1028
-10
lines changed

micropython/usbd/__init__.py

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy