Skip to content

remove PULL generic from Input#512

Open
burrbull wants to merge 1 commit intomasterfrom
unpull
Open

remove PULL generic from Input#512
burrbull wants to merge 1 commit intomasterfrom
unpull

Conversation

@burrbull
Copy link
Member

No description provided.

@burrbull burrbull force-pushed the unpull branch 3 times, most recently from ef51481 to 7f171d2 Compare October 11, 2024 06:21
@tmehr-enqt
Copy link
Contributor

Looks good to me.

@burrbull burrbull force-pushed the unpull branch 4 times, most recently from bb05531 to c70a8b2 Compare January 20, 2026 09:08
@burrbull burrbull marked this pull request as ready for review January 20, 2026 09:23
@burrbull
Copy link
Member Author

I've rebased this PR.

The advantage: most of APIs are much easier.

Disadvantages:

  1. PULL is not a part of MODE (I think it should not). So we can't protect in compile time incorrect PullDown. UpMode trait is removed.
  2. as_push_pull_output, etc. multimode GPIO API is potentially broken. (as pull is same register field as mode in STM32F1). My opinion it should be deprecated. Use Dynamic pin instead.

Copy link
Contributor

@tmehr-enqt tmehr-enqt left a comment

Choose a reason for hiding this comment

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

I does makes it a bit cleaner. I would suggest to just remove as_push_pull_output, this is a breaking change anyways.

@burrbull
Copy link
Member Author

I does makes it a bit cleaner. I would suggest to just remove as_push_pull_output, this is a breaking change anyways.

I've removed as_xx_output. PR needs complex test.

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