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

Fix default mode of debug GPIO pins #82

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

teskje
Copy link
Collaborator

@teskje teskje commented Mar 30, 2020

After reset, the debug GPIO pins (PA13, PA14, PA15, PB3, PB4) are in AF0
mode. This PR fixes the gpio code to reflect this.

I've checked all the relevant RMs to verify this. It's easiest to just look at the reset values of the GPIOx_MODER register. Also all the RMs say "The debug pins are in AF pull-up/pull-down after reset".

After reset, the debug GPIO pins (PA13, PA14, PA15, PB3, PB4) are in AF0
mode. This commit fixes the `gpio` code to reflect this.
Copy link
Member

@Sh3Rm4n Sh3Rm4n left a comment

Choose a reason for hiding this comment

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

Thanks for the instruction, on how to find the information in the reference manual.
With this I could easily verify it :)

@Sh3Rm4n Sh3Rm4n merged commit ca8a86c into stm32-rs:master Mar 31, 2020
@teskje teskje mentioned this pull request Jul 15, 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.

None yet

2 participants