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

stm32f103 says it is normaly configured as pull up but im not convinced that is the case. #39

Open
CvRXX opened this issue Jan 9, 2021 · 1 comment

Comments

@CvRXX
Copy link
Contributor

CvRXX commented Jan 9, 2021

The documentation tells us this:

/// This constructor sets the pin direction to input.
/// By default, the internal weak pull-up is enabled.

The mode cnf wil be set to 1000.
image

But as can be seen in above image this depends on the PxODR register. So if it was an output before and it was put low it will be a pull down.

@CvRXX
Copy link
Contributor Author

CvRXX commented Jan 9, 2021

@wovo Am I right?

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

No branches or pull requests

1 participant