Re: USB: Question about usb_write() API
On Tue, Jan 30, 2018 at 9:01 PM, andrei.emeltchenko@... <andrei.emeltchenko.news@...> wrote:
I think API states it supports both methods:
Yes, it does support both of them. So new drivers should support both of them to be inline with the API definition?
As Paul pointed out, some old drivers might need to be modified since some applications assume the drivers' fragmentation support.
Fragmentation to USB packets is done on a higher level, in function_ecm
Thanks for pointing this. I'll look how this is being used.
Please also look to usb_dc_ep_transfer() implemented for DW and STM32:
Will look into it. Thanks.