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

Decouple the twai driver from the embedded-hal traits #1355

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

jessebraham
Copy link
Member

This PR decouples the twai driver from the embedded-hal traits, allowing it to be used without importing said traits. This unfortunately has resulted in a lot of duplication between our HAL and the two embedded-hal packages, however I see no other way around this really.

There are still some other changes to be made, but after another PR we should be able to build the HAL without either the embedded-hal or embedded-hal-02 features enabled and still have it be usable.

There is still some room for improvement with regards to documentation here, however I'm rather unfamiliar with the filters, etc. and don't really know how best to describe them. For this reason, I will leave the task to somebody more knowledgeable.

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 - also tested on hardware (using transceivers)

@jessebraham jessebraham added this pull request to the merge queue Mar 28, 2024
Merged via the queue into esp-rs:main with commit 7d5372f Mar 28, 2024
20 checks passed
@jessebraham jessebraham deleted the fixes/twai branch March 28, 2024 15:37
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