107-systems / 107-Arduino-MCP2515

Arduino library for controlling the MCP2515 in order to receive/transmit CAN frames.
https://107-systems.org
MIT License
88 stars 14 forks source link

Allow Toggling The Use Of Only One TX Buffer #94

Closed joerossrobotics closed 1 year ago

joerossrobotics commented 1 year ago

⚡ Feature Request

Please Describe The Problem To Be Solved Add a function to allow the user to toggle the use of only one TX buffer. Currently this happens if libcanard is included in order to prevent unintentional priority inversion while transmitting OpenCyphal/CAN frames. However, while implementing the Kocherga Bootloader, I needed to work directly with CAN Frames, while also preventing these priority inversion issues.

(Optional): Suggest A Solution I have added the function enableSingleTXBuffer(bool enable). See POC Here.

aentinger commented 1 year ago

This can be implemented better using a preprocessor define set within CMakeLists.txt. Let's finish #93 first and then tacke this issue.

aentinger commented 1 year ago

Closing, see https://github.com/107-systems/107-Arduino-MCP2515/pull/93#issuecomment-1705571045 .