Skip to content
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

STM32L4R5 RTC BKPR writes are unsafe despite having no side effects #975

Open
bauen1 opened this issue Apr 6, 2024 · 0 comments
Open

STM32L4R5 RTC BKPR writes are unsafe despite having no side effects #975

bauen1 opened this issue Apr 6, 2024 · 0 comments
Labels

Comments

@bauen1
Copy link

bauen1 commented Apr 6, 2024

The RTC backup registers for the STM32L4R5 are simply 32-bit memory and writing them has no other side effects, as such they should not require unsafe to write.
At least as far as I understand it so far.

In essence I want to be able to do:

rtc.bkpr[0].write(|w| w.bkp().bits(0));

Instead of:

rtc.bkpr[0].write(|w| unsafe { w.bkp().bits(0) });
@newAM newAM added the stm32l4 label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants