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

Enable *and* reset gpio in split method #182

Merged
merged 3 commits into from
Feb 13, 2025
Merged

Conversation

usbalbin
Copy link
Member

@AdinAck and @burrbull , do you believe this is the actual fix for #180 ?

src/gpio.rs Outdated
@@ -14,7 +14,7 @@ pub trait GpioExt {
type Parts;

/// Splits the GPIO block into independent pins and registers
fn split(self, rcc: &mut Rcc) -> Self::Parts;
fn split(self, rcc: &Rcc) -> Self::Parts;
Copy link
Member Author

Choose a reason for hiding this comment

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

Also, unrelated to #180, since Enable::enable and Reset::reset use bit banding, we do not need exclusive access to the rcc right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will remove this and perhaps do that later

@usbalbin usbalbin merged commit 2e7e5c1 into stm32-rs:main Feb 13, 2025
23 checks passed
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.

1 participant