107-systems / 107-Arduino-MCP2515

Arduino library for controlling the MCP2515 in order to receive/transmit CAN frames.

Home Page:https://107-systems.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow Toggling The Use Of Only One TX Buffer

joerossrobotics opened this issue · comments

⚡ 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.

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