Skip to content

Derive USDHC1_FREQUENCY from named constants#187

Merged
mciantyre merged 1 commit intomciantyre:masterfrom
tacertain:USDHC1-support
Apr 7, 2026
Merged

Derive USDHC1_FREQUENCY from named constants#187
mciantyre merged 1 commit intomciantyre:masterfrom
tacertain:USDHC1-support

Conversation

@tacertain
Copy link
Copy Markdown
Contributor

Your comment about the clocks in CHANGELOG pushed my anxiety about USDHC1_FREQUENCY being a hand-maintained literal over the top.

USDHC1_FREQUENCY was a hand-maintained literal. Derive it from
PLL2_PFD2_FREQUENCY (itself derived from ccm::analog::pll2::FREQUENCY
and the bootloader-set PFD2 fractional divider) and a named USDHC1_PODF
divider. Add a compile-time assert to catch any future drift.
@mciantyre mciantyre merged commit 429f08c into mciantyre:master Apr 7, 2026
7 checks passed
@tacertain tacertain deleted the USDHC1-support branch April 9, 2026 19:35
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