Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

maximeborges
Copy link
Member

When writing to CNT/ARR/CCR%s single-field registers via bits(), it requires the use of unsafe for timers 9 to 14.
This PR allows to use safe bits() writing just like the other timers

@github-actions
Copy link

Memory map comparison

@adamgreig
Copy link
Member

Any reason to close this? Is it already in another PR?

@maximeborges
Copy link
Member Author

I was sure I did a mistake since I forgot to cleanup some code that was using it in the F7 HAL, but it actually looks fine so I'll reopen it

@maximeborges maximeborges reopened this Feb 10, 2022
@maximeborges maximeborges changed the title f7/tim: access to bits() without unsafe for single-field registers F7/tim: access to bits() without unsafe for single-field registers Feb 10, 2022
@newAM newAM added the stm32f7 label Feb 10, 2022
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

bors r+

@bors bors bot merged commit fa72d11 into stm32-rs:master Jul 3, 2022
@bors
Copy link
Contributor

bors bot commented Jul 3, 2022

Build succeeded:

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

Successfully merging this pull request may close these issues.

3 participants