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

Modernized BurtCan #18

Merged
merged 6 commits into from
Jan 30, 2024
Merged

Modernized BurtCan #18

merged 6 commits into from
Jan 30, 2024

Conversation

Levi-Lesches
Copy link
Member

  • Added onShutdown argument in anticipation of heartbeat detection
  • Switches from interrupts to polling, moved polls to the `update method
  • Removed default and global message handlers
  • Made BurtCan into a template, can now be used with Can1, Can2, or Can3

Note

This PR changes BurtCan from using FlexCAN_T4's interrupt-based mailboxes to a polling-based mechanism. The update method will try to clear the CAN buffer. However, if too many messages arrive in between calls to update(), it can result in significant slowdowns and noticeable latency in message handling.

@Levi-Lesches Levi-Lesches merged commit 53e17ba into main Jan 30, 2024
1 check passed
@Levi-Lesches Levi-Lesches deleted the can-serial branch January 30, 2024 21:05
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.

None yet

1 participant