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: Add receive example (Copy of #7430) #7550

Merged

Conversation

Dazza0
Copy link
Collaborator

@Dazza0 Dazza0 commented Dec 5, 2022

Copy of #7430 but squashed and rebased.

@Dazza0
Copy link
Collaborator Author

Dazza0 commented Dec 5, 2022

@designer2k2 I've rebased and squashed your PR, and updated the commit message. PTAL.

@VojtechBartoska
Copy link
Collaborator

@PilnyTomas Can you please do one more "quick" review and after that, we can merge it.

@VojtechBartoska VojtechBartoska added the Type: Example Issue is related to specific example. label Dec 5, 2022
@VojtechBartoska VojtechBartoska removed their assignment Dec 5, 2022
@Dazza0 Dazza0 force-pushed the feature/add_twai_receive_example branch from aea1c80 to 71ae907 Compare December 5, 2022 13:18
@Dazza0 Dazza0 requested a review from me-no-dev December 5, 2022 13:25
@Dazza0 Dazza0 force-pushed the feature/add_twai_receive_example branch from 71ae907 to c2c7c07 Compare December 5, 2022 14:10
This commit addes an example showing how to receive messages using the TWAI
driver interface and a CAN transceiver. Specifically, the example demonstrates:

- How to configure and install the TWAI drvier
- How to poll for TWAI events (i.e., alerts) using twai_read_alerts()
- How to handle the various events (such as TWAI_ALERT_RX_DATA)

Closes espressif#7430
@Dazza0 Dazza0 force-pushed the feature/add_twai_receive_example branch from c2c7c07 to 0b9796e Compare December 5, 2022 14:12
@Dazza0 Dazza0 requested a review from me-no-dev December 5, 2022 15:22
@me-no-dev me-no-dev merged commit 9006751 into espressif:master Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Example Issue is related to specific example.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants