Ltu-Bike-trailer / control-software

Provides embedded software for controlling the cart.
MIT License
0 stars 0 forks source link

Can #20

Closed wiiggee1 closed 6 days ago

wiiggee1 commented 2 weeks ago

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