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

try using interrupts to trigger can reading again #25

Open
2 tasks
rickyelopez opened this issue Sep 2, 2020 · 0 comments
Open
2 tasks

try using interrupts to trigger can reading again #25

rickyelopez opened this issue Sep 2, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers requires cage Task requires access to the cage or resources in the cage

Comments

@rickyelopez
Copy link
Member

I tried this once upon a time but it didn't work very well (read: at all). In theory we can save some cycle time by not checking CAN unless we know there's a message. The MCP2515 supports sending an interrupt when a message has been received, and I wired up that pin even though I didn't intend to use it.

  • Create ISR that sets a "message received" flag
  • Every cycle, check that flag. If true, process message
@rickyelopez rickyelopez added enhancement New feature or request good first issue Good for newcomers requires cage Task requires access to the cage or resources in the cage labels Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers requires cage Task requires access to the cage or resources in the cage
Projects
None yet
Development

No branches or pull requests

1 participant