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

BusClock #273

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

BusClock #273

wants to merge 1 commit into from

Conversation

burrbull
Copy link
Contributor

No description provided.


impl BusTimerClock for APB1R1 {
fn timer_clock(clocks: &Clocks) -> Hertz {
let pclk_mul = if clocks.ppre1 > 1 { 2 } else { 1 };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need check

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this resolved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I can't check it.
I've just copied this from F4. But L4 can have other multipliers. Or it can always be 1.
In F4 you can find it in RCC_DCKCFGR/TIMPRE register. I can't find something similar for L4.

@burrbull
Copy link
Contributor Author

rebased
@MathiasKoch

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