Re: USB: Question about usb_write() API
Johann Fischer
Hi,
Here's what bt_usb does:This sample was written for the DW driver, there was no other device driver recently. Another class driver, netusb does it a little differently by writing inPlease use subsys/usb/class for testing and as reference. One more thing to consider is the write callbacks. In most cases, theThe IN endpoint callback just informs that a endpoint buffer was transmitted to the host. I used the DW driver as a reference, see https://github.com/zephyrproject-rtos/zephyr/pull/542 The Kinetis USB controller is a bit similar to NRF52, btw I would be glad about review. There is an effort to implement the transfer method. This is very convenient from the function point of view, but may complicate the drivers. Please review https://github.com/zephyrproject-rtos/zephyr/pull/5231 Regards, Johann Fischer |
|