Skip to content

Fix incorrect Host Clock Controller's configure() - #89

Open
BradWalker wants to merge 2 commits into
atsams-rs:developmentfrom
BradWalker:fix_for_hal_efc_divisor
Open

Fix incorrect Host Clock Controller's configure()#89
BradWalker wants to merge 2 commits into
atsams-rs:developmentfrom
BradWalker:fix_for_hal_efc_divisor

Conversation

@BradWalker

@BradWalker BradWalker commented May 14, 2026

Copy link
Copy Markdown
Contributor

The HostClockController should use both pres & div when determining the EFC wait state.

Like this:
efc.set_wait_states(source.freq().convert() / (pres as u32) / (div as u32))?;

Also, minor comment updates.

@michalfita

Copy link
Copy Markdown
Collaborator

The PR misses the entry in the CHANGELOG.md.

@michalfita michalfita changed the title fix: Host Clock Controller configure() is not correct Fix incorrect Host Clock Controller's configure() May 14, 2026
@michalfita michalfita added the bug Something isn't working label May 14, 2026
@BradWalker
BradWalker force-pushed the fix_for_hal_efc_divisor branch from 2abb9bb to 51dc3a1 Compare July 7, 2026 23:31
@BradWalker

Copy link
Copy Markdown
Contributor Author

@michalfita , it's fixed now..

@michalfita
michalfita force-pushed the fix_for_hal_efc_divisor branch from 51dc3a1 to da4e03b Compare July 8, 2026 19:06

@michalfita michalfita left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

On assumption this is tested change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants