We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Peripherals::steal() has a write to a static mut:
Peripherals::steal()
static mut
cortex-m/src/peripheral/mod.rs
Line 180 in 6b01313
I expected it to be zero-cost, just constructing and returning the Peripherals which is a noop since it is ZST. This was a bit surprising.
Peripherals
The text was updated successfully, but these errors were encountered:
cc #186
Sorry, something went wrong.
No branches or pull requests
Peripherals::steal()
has a write to astatic mut
:cortex-m/src/peripheral/mod.rs
Line 180 in 6b01313
I expected it to be zero-cost, just constructing and returning the
Peripherals
which is a noop since it is ZST. This was a bit surprising.The text was updated successfully, but these errors were encountered: