tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

Add CH341 emulation class driver

Open TravisRo opened this issue 3 years ago • 1 comments

Describe the PR Adds CH341 USB to serial emulation class.

Additional context The CDC driver (for windows at-least) is problematic which is probably why all of the USB to serial IC manufacturers use their own proprietary driver. In my case, I was trying to implement an ESP32 programmer with a CDC interface only to discover that the windows CDC driver (usbser.sys) doesn't handle the RTS signal properly so there was no way to get it to work without modifying the esp scripts.

This CH341 emulation class supports all of the signals. DTR RTS CTS DSR RI DCD as well as BREAK.

Everything is working as of now with the latest master branch and an RP2040. I didn't look at the other bsp's so there may be a small amount of additional work to do.

Regards, Travis Robinson [email protected] (libusb-win32, libusbK, LibUsbDotNet)

TravisRo avatar Jun 10 '22 15:06 TravisRo

I have build_arm and build_aarch64 workflows fully green lit. Hopefully the others will go through too. I had to setup my own self-hosted runner to get through your workflow maze. You can't even have a printf in the example code. yikes!

TravisRo avatar Jun 18 '22 04:06 TravisRo