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

Remove generic RCC buses from public API #232

Merged
merged 2 commits into from
Jun 20, 2020

Conversation

TheZoq2
Copy link
Member

@TheZoq2 TheZoq2 commented Jun 20, 2020

I never liked the RccBus generic stuff, as it made it impossible to tell which register to pass to the constructors of functions, &mut <USART1 as RccBus>::Bus isn't very helpful.

This PR goes back to explicit APB1 and APB2 in the constructors, but keeps the generic structs inside functions to still provide most of the benefit while improving doc readbility.

While this is a public API change, I don't believe it is breaking, as it still requires the exact same types to be passed to functions.

cc: @burrbull

@burrbull
Copy link
Member

Ok

Copy link
Member

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

LGTM

@TheZoq2 TheZoq2 merged commit 28d943d into stm32-rs:master Jun 20, 2020
@TheZoq2 TheZoq2 mentioned this pull request Jun 21, 2020
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.

3 participants