Skip to content

Require exclusive access to the RESET peripheral for RP2040/RP2350 #1079

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thejpster
Copy link
Contributor

If you don't have exclusive access to the RESET peripheral, someone else could race you on the read/modify/write cycle on the update of the RESETS.reset register.

This is a breaking change.

If you don't have exclusive access to the RESET peripheral, someone else
could race you on the read/modify/write cycle on the update of the
RESETS.reset register.

This is a breaking change.
@thejpster thejpster force-pushed the rp-pac-exclusive-resets branch from 896d876 to c04b02e Compare June 15, 2025 12:39
@thejpster
Copy link
Contributor Author

rebased on master

@thejpster
Copy link
Contributor Author

Hmmm. RESETS is Send but !Sync so this change might be moot.

@korken89
Copy link
Collaborator

Yeah, it's an oversight that it's not &mut but the bounds you point out makes it not horrible at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants