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 OutputOpenDrain #3029

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Remove OutputOpenDrain #3029

wants to merge 1 commit into from

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Jan 24, 2025

Closes #3016

This PR walks back on the fallibility of the GPIO constructors, and moves the initial level out of the config struct.

<Channel<Async, 0> as RxChannelInternal>::unlisten_interrupt(
Event::End | Event::Error,
);
<Channel<Async, 0> as TxChannelInternal>::unlisten_interrupt(Event::End | Event::Error);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

WHY

Copy link
Contributor

Choose a reason for hiding this comment

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

mhhh - the xtask doesn't touch these lines for me but VSCode "Reformat Code" does 🤔 - would be good if they would agree (at least the CI checks don't care - not sure if that is a good or a bad thing)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well the result is better, but the reformatting is soooo unnecessary...

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 - it's much better

Copy link
Contributor

@bjoernQ bjoernQ Jan 24, 2025

Choose a reason for hiding this comment

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

oh - it seems that cargo fmt (and so does xtask fmt-packages) ignores modules which are contained in an unstable_module! { ... } 😲 - currently I can do "anything" in terms of formatting to e.g. rmt.rs and it will stay that way.

When I move the module out of the macro-invocation it gets reformatted (and the same way we see here)

@bugadani bugadani force-pushed the opendrain branch 11 times, most recently from 44f09fc to 8fda0d3 Compare January 24, 2025 17:19
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.

Revise GPIO Output drivers
2 participants