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

Erase i2s #2367

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Erase i2s #2367

merged 2 commits into from
Oct 22, 2024

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Oct 18, 2024

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • I have added necessary changes to user code to the Migration Guide.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 📖

Description

Please provide a clear and concise description of your changes, including the motivation behind these changes. The context is crucial for the reviewers.

Testing

Describe how you tested your changes.

@bugadani
Copy link
Contributor Author

Wtf github

@bugadani bugadani reopened this Oct 21, 2024
@bugadani bugadani marked this pull request as ready for review October 21, 2024 14:38
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.

Changes looks pretty straight forward

+ PeripheralMarker
+ DmaEligible
+ Into<super::AnyI2s>
+ 'static
Copy link
Collaborator

Choose a reason for hiding this comment

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

👀 Why 'static?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So that we don't need bogus + 'd lifetimes littered (thinking about impl Peripheral<P = impl Into<Foo> + 'd> + 'd), though it kind of depends on what the constructors take and I'm not completely decided on that yet. Anyway, we don't have programmable hardware so our peirpheral instances don't go away.

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

@bjoernQ bjoernQ added this pull request to the merge queue Oct 22, 2024
Merged via the queue into esp-rs:main with commit d914a03 Oct 22, 2024
28 of 38 checks passed
@bugadani bugadani deleted the erase-i2s branch October 22, 2024 07:23
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.

3 participants