Skip to content

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

Merged
bors[bot] merged 1 commit intorust-embedded:masterfrom
Dirbaio:i2c-unify-error
Jan 12, 2022
Merged

i2c: enforce all traits have the same Error type.#336
bors[bot] merged 1 commit intorust-embedded:masterfrom
Dirbaio:i2c-unify-error

Conversation

@Dirbaio
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Member Author

Dirbaio commented Jan 11, 2022

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

Copy link
Copy Markdown
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