Open Ioan-Cristian opened 3 months ago
Speaking just for myself, updating the USB HIL would be welcome, and the current stack is confusing. However, we have multiple implementations for different chips, and updating all of those correctly might be hard.
Related to the IN interface for the default endpoint:
CtrlIn
state for the endpoint at the capsule level, but not at the peripheral level. This is related to the duplication of endpoint states at peripheral level and upper layers.I'm writing a new USB HIL right now. When I port it to my board, I'll open a draft pull request. I think it would be helpful if other proposals for different USB controllers are made and then compare them.
Hello!
I'm writing a USB driver for a board. I have a hard time due to the USB stack design. The issues that I have:
ClientCtrl
does not enable the IN interface of the endpoint 0. Is the peripheral expected to do this?Result
.endpoint_set_in_buffer()
method?I would like to rework the USB HIL to ressemble the flash HIL. The reworked USB HIL will have one goal: eliminate any logic from peripheral implementations. The only purpose of the peripheral driver (USB Bus interface layer) is to notify the upper layers of packets received, sent and link state events.
What do you think?