-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stm32] Default FDCAN to FIFO mode instead of Queue Mode
Queue Mode will send CAN frames in priority order according to their arbitration ID. This is inconsistent with modm's software-managed queue which is a strict FIFO. To make the behavior of the driver consistent with an end-to-end FIFO order, we disable Queue Mode by default. There is a new lbuild option, "tx_hw_queue_mode", which allows the user to opt back into the old behavior if desired. This is mostly intended for if they also set "buffer.tx" to zero and optionally increase "message_ram.tx_fifo_elements". Note that the fdcan unit test was implicitly assuming FIFO order. This change also fixes that test for larger HW TX buffer sizes.
- Loading branch information
Showing
3 changed files
with
25 additions
and
3 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