-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SLCAN stability when the UART is active
slcan_output_messages now stops formatting messages where there is no more room in the virtual CDC-ACM output buffer. Redo the vcdc circular buffers with unmasked head and tail counters so that it's easier to calculate the amount of space used/available. Redo the CAN RX circular buffer with unmasked head and tail counters so that one more message slot can be used compared to before. Rewrite the CAN ISR to avoid starving the MCU when message processing slows down and the RX buffer fills up. It now disables the ISR on overflow so that the main loop always has a chance to run.
- Loading branch information
Showing
5 changed files
with
99 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters