Skip to content

usb device class #41

Closed Locked Answered by henrikbrixandersen
KozhinovAlexander asked this question in Q&A
Discussion options

You must be logged in to vote

I am trying to understand, why there are device/class and device_next/class paths with almost same code?

As mentioned in https://github.com/CANnectivity/cannectivity/blob/main/README.md, CANnectivity supports both the classic and the experimental USB device_next stacks provided by Zephyr. While the files may seem very similar on quick glance, the similarities end when it comes to the USB device APIs, they need to implement.

In my understanding copy-pasting the code inceases testing effort exponentially.

If you had taken a look in e.g. https://github.com/CANnectivity/cannectivity/tree/main/tests/subsys/usb/gs_usb/host, you would have seen that the testing efforts are not duplicated bet…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbrixandersen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants