This is the first version of the MCP2515 driver. It is currently under development.
As of now, the driver code seems to work for sending Standard ID CAN frame over the CAN bus.
This pull-request, needs some review, mainly for checking the logic related to the interrupt handling.
Testing
Testing was done using breadboard and sending CAN messages between two modules on the
same development kit (NRF52840 DK). The SPI instructions and register checks were validated using
the logic analyzer tool, pulseview on arch Linux.
TODOs
[ ] Test with the protocol.
[ ] Test the driver code, for the integrated PCBs to see that everything works as expected.
[ ] Refine the logic for how to handle the different interrupt types for managing the received and transmitted CAN frames.
Can driver V1.
Introduction
This is the first version of the MCP2515 driver. It is currently under development. As of now, the driver code seems to work for sending Standard ID CAN frame over the CAN bus. This pull-request, needs some review, mainly for checking the logic related to the interrupt handling.
Testing
Testing was done using breadboard and sending CAN messages between two modules on the same development kit (NRF52840 DK). The SPI instructions and register checks were validated using the logic analyzer tool, pulseview on arch Linux.
TODOs