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

Allow selecting any clock source when freezing rcc configuration #148

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

liamkinne
Copy link
Contributor

Currently PCLK is is statically configured when the constructor for the FDCAN peripheral is called. This pull request adds selecting the clock source.

This also means the default clock source is HSE (the reset value) rather than PCLK. The can-echo example doesn't need to be updated as it assumes PCLK = HSE.

@liamkinne
Copy link
Contributor Author

@usbalbin once you are happy with this PR, I can do the same for all of the other peripheral clock sources.

@usbalbin
Copy link
Contributor

LGTM

@liamkinne
Copy link
Contributor Author

I will do the other clock configs in another PR. Happy for this to be merged.

@usbalbin usbalbin merged commit fca3989 into stm32-rs:main Nov 22, 2024
23 checks passed
@usbalbin
Copy link
Contributor

Thank you!

@liamkinne liamkinne deleted the feature/fdcan-clock-select branch November 25, 2024 03:32
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