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

i2c: enforce all traits have the same Error type. #336

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Dec 20, 2021

Equivalent of #331 for i2c.

@Dirbaio Dirbaio requested a review from a team as a code owner December 20, 2021 21:12
@rust-highfive
Copy link

r? @therealprof

(rust-highfive has picked a reviewer for you, use r? to override)

eldruin
eldruin previously approved these changes Dec 20, 2021
Copy link
Member

@eldruin eldruin left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

eldruin
eldruin previously approved these changes Dec 20, 2021
eldruin
eldruin previously approved these changes Dec 20, 2021
@Dirbaio
Copy link
Member Author

Dirbaio commented Jan 11, 2022

Friendly ping @eldruin @therealprof @ryankurte are there any pending concerns on this?

Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

LGTM, too.

bors r+

@bors bors bot merged commit baaaaa1 into rust-embedded:master Jan 12, 2022
bors bot added a commit that referenced this pull request Jan 18, 2022
339: I2c unify r=eldruin a=Dirbaio

Depends on #336 

Equivalent of #323 but for I2c.

I think for i2c unifying everything in a single trait makes the most sense. The i2c bus is specified to be bidirectional, I believe no hardware out there can "only write" or "only read" (and writing requires *reading* ACK bits anyway!).



Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Review is incomplete T-hal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants