Northeastern-Electric-Racing / Shepherd-BMS

Our from-scratch Battery Management Application
4 stars 0 forks source link

Direct Memory Addressing for SPI #119

Open Sabramz opened 2 months ago

Sabramz commented 2 months ago

Description

Title. We are doing this because it is faster and easier.

Acceptance Criteria

Proposed Solution

Set up DMA for SPI lines in STM32CubeMX, find all SPI write and read calls and replace them with DMA access. Make callbacks for DMA RX and TX interrupts. Wrap it in a nice interface, replace calls to HAL functions with interface.