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

Support HSE and USB clock #18

Merged
merged 3 commits into from
Jul 22, 2019
Merged

Support HSE and USB clock #18

merged 3 commits into from
Jul 22, 2019

Conversation

agalakhov
Copy link
Contributor

No description provided.

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
src/rcc.rs Outdated
.bits(ppre1_bits)
.hpre()
.bits(hpre_bits)
.usbpre()
Copy link
Member

@dfrankland dfrankland Jul 21, 2019

Choose a reason for hiding this comment

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

Seems like the stm32f301 and the stm32f334 don't have USB prescalers. If you'd like, I can fix this up with some conditional configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, I was not aware of this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added one more commit for feature-gating this.

@dfrankland
Copy link
Member

Thank you so much for contributing this! 😄

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
@dfrankland dfrankland merged commit ab58e03 into stm32-rs:master Jul 22, 2019
@dfrankland
Copy link
Member

Awesome work, thanks again @agalakhov

@agalakhov agalakhov deleted the rcc-usb branch July 23, 2019 23:29
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