-
Notifications
You must be signed in to change notification settings - Fork 367
Fix GPIO interrupt status not being cleared #670
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
|
cc @MabezDev because of the |
|
Oh wow, I'm actually dumb 🤦. How did I not think about the previous loop clearing all the bits in Regarding the split, could we do that in a separate PR? I'd like to see the performance difference once the cztz/czlz codegen improvements have been merged. |
Sure thing, we can do whatever :) Any opinions about the bit clearing change? |
Looks good to me :) |
ee4320d to
d4f3215
Compare
MabezDev
left a comment
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.
|
@MabezDev Spoke too soon. It still doesn't work properly. |
* Fix clearing interrupt status * Use simpler way to clear bits * Add note about xtensa * Add to changelog
* Fix clearing interrupt status * Use simpler way to clear bits * Add note about xtensa * Add to changelog
Thank you!
Thank you for your contribution.
Please make sure that your submission includes the following:
Must
errorsorwarnings.cargo fmtwas run.CHANGELOG.mdin the proper section.Nice to have
This PR fixes an issue where
write_interrupt_status_clearwas always called with0as its argument, because the processing loop cleared the status bits. We also clear the bits by subtracting them instead of creating a mask first to and with - hopefully this optimizes better, too.