-
Notifications
You must be signed in to change notification settings - Fork 171
scb: add static version of system_reset as sys_reset #138
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
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ithinuel (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
hi team! could someone take a look? |
Hi, overall I think this looks good, however I'm not 100% sure of the name. Any comments against @rust-embedded/cortex-m ? Else I will approve and merge this today. |
Much as I hate to suggest a new breaking change so soon after 0.6, I wonder if |
Sorry for hijacking, but if we go this route, it'd probably make sense to do the same for |
I agree on only having a static version as it makes sense. What does @therealprof or @japaric think? |
IMO, it makes sense to add this static method and deprecate the old |
I could add the deprecation warning and a TODO to rename the |
Are you suggesting we call the new static function It's sort of nice in that we end up with just |
I'm not too attached to |
I have incorporated your feedbacks, thanks! |
I'm also quite ok with what @therealprof said |
I think this is close enough for naming, we can bike-shed this forever :) |
bors r+ |
138: scb: add static version of system_reset as sys_reset r=korken89 a=hdhoang As suggested in https://github.com/ah-/anne-key/pull/94. I branched this off v0.5.8 to verify the function in that PR, and against rtfm v0.3 in hdhoang/anne-key@d6fb831 I have cloned the body of `system_reset`, do you think we should call one from the other (e.g. ignoring `self` in `system_reset`, or stealing `Peripherals` in `system_reset2`)? Co-authored-by: Hoàng Đức Hiếu <[email protected]>
Build succeeded |
As suggested in https://github.com/ah-/anne-key/pull/94. I branched this off v0.5.8 to verify the function in that PR, and against rtfm v0.3 in hdhoang/anne-key@d6fb831
I have cloned the body of
system_reset
, do you think we should call one from the other (e.g. ignoringself
insystem_reset
, or stealingPeripherals
insystem_reset2
)?