-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Added Long USB RecvControl call for >64 bytes #4317
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
Conversation
Ok, this doesn't add any overhead if not used, so I'm for merging. Thanks! |
Added Long USB RecvControl call for >64 bytes
Is this API available for SAM/SAMD/others? |
The overhead is BIG if we leave only the |
My point is that if a library use USB_SendControlLong, it will fail to compile on SAM/SAMD.
|
Sorry, I meant that using the |
You are totally right. However the whole USB Core needs an improvement, so this shouldnt matter for now (my opinion). If you really want to fix this, add a proper USB Core like LUFA with also sam compatible functions. This PR was "just" an addition I needed for the HID Project (Raw HID especially). Its only avr compatible anyways, so for me its fine. I guess this might be the only project using the usb-core anyways. So thanks for merging! :) |
Adding an API means that people starts to rely on it, we should document it and maintain (for other cores as well).
This don't justify adding a project-specific-API to the core, if you're the only one using it why you feel the need to add it to the core then? So at this point I'm all for removing I'll try to crack a fix for this in a moment. |
This PR replaces the 2nd commit of #4105
It makes more sense to integrate this (wrapper) function into the core instead of my project, since I use it 3 times and other people might need it too.
It doesnt break anything, just a new function was added
cc @facchinm