-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add atomic XOR/set/clear access #25
Comments
I think I see something similar here in svd2rust |
I opened an issue upstream rust-embedded/svd2rust#535 |
For reference the rp2040-hal currently implements it via the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While I suspect this is something that might be added through svd2rust I still think its useful to mention here:
According to 2.1.2 from the datasheet most registers allow XORing, setting or clearing of individual bits by writing to offset
0x1000
,0x2000
or0x3000
from the base register. This is useful in a lot of cases to circumvent a read/modify cycle.Afaik this is not supported by the pac at the moment..
The text was updated successfully, but these errors were encountered: