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

TWAI: GPIO pins are not configured as input and output #1906

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

ProfFan
Copy link
Contributor

@ProfFan ProfFan commented Aug 6, 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.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 📖

Description

Fixes #1895, this should also fix the same problem for other chips (ESP32/C3/etc).
Also updated the initialization procedure to closely follow the IDF version.

Testing

Run the TWAI example with a live CAN bus.

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.

Interesting, I'm not sure how this was working before, but it may have been related to the recent GPIO refactor.

LGTM, thanks!

Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@jessebraham jessebraham added this pull request to the merge queue Aug 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Aug 7, 2024
@jessebraham jessebraham enabled auto-merge August 7, 2024 13:55
@jessebraham jessebraham added this pull request to the merge queue Aug 7, 2024
Merged via the queue into esp-rs:main with commit 3473dda Aug 7, 2024
18 checks passed
AnthonyGrondin pushed a commit to AnthonyGrondin/esp-hal that referenced this pull request Aug 8, 2024
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
@ProfFan ProfFan deleted the fan/fix_twai branch August 10, 2024 15:10
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.

TWAI is not working for ESP32-S3
3 participants