Skip to content

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
Member

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
Member

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