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 the use of any GCLK with CAN #797

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

rnd-ash
Copy link
Contributor

@rnd-ash rnd-ash commented Dec 3, 2024

Summary

This makes it possible to setup any Gclk with the MCAN API, rather than being limited to always using Gclk0, which might not be possible depending on the application.

Checklist

  • All new or modified code is well documented, especially public items
  • No new warnings or clippy suggestions have been introduced - CI will deny clippy warnings by default! You may #[allow] certain lints where reasonable, but ideally justify those with a short comment.

@rnd-ash rnd-ash changed the title Decouple Gclk0 from CAN Allow the use of any GCLK with CAN Dec 3, 2024
@jbeaurivage
Copy link
Contributor

I wonder why this was restricted to GCLK0 only in the first place? At least from reading the datasheet, the peripheral does indeed seem to support any GCLK source.

@jbeaurivage jbeaurivage merged commit 36fc84c into atsamd-rs:master Dec 4, 2024
93 of 111 checks passed
@github-actions github-actions bot mentioned this pull request Dec 4, 2024
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