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

Async-TWAI #1320

Merged
merged 5 commits into from
Mar 21, 2024
Merged

Async-TWAI #1320

merged 5 commits into from
Mar 21, 2024

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Mar 21, 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).
  • My changes were added to the CHANGELOG.md in the proper section.

Extra:

Pull Request Details 📖

Description

This adds async support for TWAI based on #951

Rebasing wouldn't be very pleasant given 367 PRs got merged in-between so I applied the changes from the original PR here and added the original author as co-author.

It also prepares ESP32 and ESP32-S2. ESP32 (like ESP32-C6) compiles but doesn't work. However, ESP32-S2 works - so I whitelisted the examples for it

Testing

I used two TWAI/CAN transceivers to connect one ESP32-C3 running the blocking twai example and one ESP32-S3 running the async example. Make sure to remove the ".into_open_drain_output()` when using transceivers.

bjoernQ and others added 2 commits March 21, 2024 10:04
Co-authored-by: Paul Paterson <ptpaterson@gmail.com>
@bjoernQ bjoernQ changed the title Apply changes from https://github.com/esp-rs/esp-hal/pull/951 Async-TWAI Mar 21, 2024
@bjoernQ bjoernQ marked this pull request as ready for review March 21, 2024 11:47
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for pushing this over the finish line. Could you update #324 once this is merged?

Big thank you to @ptpaterson for the initial implementation, much appreciated! Excited to see this addition in esp-hal :)

@bjoernQ bjoernQ added this pull request to the merge queue Mar 21, 2024
Merged via the queue into esp-rs:main with commit 33c7c32 Mar 21, 2024
17 checks passed
@bjoernQ bjoernQ deleted the async-twai-redo branch March 21, 2024 12:47
@ndrscodes
Copy link

this is awesome and exactly what we needed, thank you! :)

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