-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic implementation of FtdiDeviceHandler #8
base: master
Are you sure you want to change the base?
Conversation
The ftdi code should go to examples. |
@jiegec - sure! I also just want to say that having no filter on |
@jiegec I'm not sure what you meant with your comment. I've added an example that spins up a fake 4 port FTDI device and echoes "hello" once a second. If you would like me to move the entirety of the FTDI code into examples, then I'd suggest that would be part of a bigger refactor. I mirrored the structure of the cdc/hid keyboard examples. |
Good job!
I put cdc/acm in src because it is a standard usb interface. But ftdi is not. |
Pull Request Test Coverage Report for Build 4105479928
💛 - Coveralls |
I think that's a rather arbitrary distinction. A driver is a driver. Putting ftdi code in examples means it has less reuse for others. It does lessen the maintenance burden which might be your concern. If you provide me a concrete suggestion for a folder structure you'd like me to observe I will implement it. I'm also going to break this PR up into smaller PRs since it has taken a while to get this one merged in and there are now other improvements and bugfixes contained in the commits. |
You are right, maybe we can take driver code to a separate crate e.g. usbip-xxx?
Happy to see that. |
Pull Request Test Coverage Report for Build 4103377666Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Adds a non-functional implementation of
UsbDeviceHandler
for FTDI devices. An FTDI device now enumerates withFtdiDeviceHandler
using the following code:Closes #7