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

Add degrade fns, move AnyI2s and AnyI2c #3226

Merged
merged 2 commits into from
Mar 7, 2025
Merged

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Mar 6, 2025

Closes #3205

I'm also moving the AnyI2c and AnyI2s types, but really only because of the macro change. We now generate degrade for singletons automatically, and if we were to introduce a separate AnyI2c for slave mode for example, we would have multiple implementations of the same function. I also don't think the peripheral instances themselves will be different, the drivers may decorate them with marker/instance traits as needed.

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@Dominaezzz Dominaezzz left a comment

Choose a reason for hiding this comment

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

LGTM. Just a nit on the changelog

Co-authored-by: Dominic Fischer <[email protected]>
@JurajSadel JurajSadel added this pull request to the merge queue Mar 7, 2025
Merged via the queue into esp-rs:main with commit 6545719 Mar 7, 2025
27 checks passed
@bugadani bugadani deleted the any-docs branch March 7, 2025 08:47
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.

Improve AnyType documentation for stable drivers
4 participants