-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix USB problems on the LPC1768 #6922
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
Fix USB problems on the LPC1768 #6922
Conversation
/morph test |
Test : FAILUREBuild number : 1837 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked this PR against my updated tests from #6880 and I think there is something missing when reenabling endpoint interrups. When endpoint_abort()
is called, and then a new interface(or altsetting) is set, the IN/OUT callbacks are not called anymore.
@fkjagodzinski I updated this PR and it should resolve the problems with #6880. I tracked down the cause of the failure to disabling the endpoint event in USBEpIntEn. It had some nasty side effects causing the failure. I removed use of this and added a warning in the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
/morph build |
Build : FAILUREBuild number : 2248 |
@c1728p9 Feel free to check out the build failure, but a quick look is pointing to this being an example issue, not a branch/PR issue. |
675b24e
to
565ec75
Compare
Reset endpoints when they are removed. This ensures buffers and the data toggle bit get reset back to zero.
Implement the USB abort function so interrupts wont fire for a transfer that has been aborted. The transfer may still take place but the buffer passed into endpoint_write or endpoint_read will not be used.
/morph build |
Build : SUCCESSBuild number : 2259 Triggering tests/morph test |
Test : SUCCESSBuild number : 2048 |
Exporter Build : ABORTEDBuild number : 1884 |
/morph export-build |
Had to stop and restart export build due to momentary IAR license issues. |
Halting CI builds until RC3 PRs are completed. Will resume after. |
/morph build |
Build : SUCCESSBuild number : 2291 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1915 |
Test : SUCCESSBuild number : 2069 |
Description
Implement the missing abort function and fix an error caused by not resetting data toggle.
Pull request type