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

[stm32] Clock: pass pll factors as struct #361

Merged
merged 1 commit into from
Mar 19, 2020

Conversation

rleh
Copy link
Member

@rleh rleh commented Mar 19, 2020

This should make it more difficult to pass the Pll factors incorrectly, which was previously easily possible with the position-based arguments.

Old API is marked as [[deprecated]], but still works.

Copy link
Member

@salkinium salkinium left a comment

Choose a reason for hiding this comment

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

This is great, we should do more const Struct & stuff for platform specific things!

src/modm/platform/clock/stm32/rcc.hpp.in Outdated Show resolved Hide resolved
src/modm/platform/clock/stm32/rcc.cpp.in Show resolved Hide resolved
@salkinium
Copy link
Member

Dang, I just merged the assert PR, before checking this one, sorry.

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

Successfully merging this pull request may close these issues.

2 participants