MITMotorsports / CANlib

An automatically generated C library for packing and unpacking based on ParseCAN specifications.
Apache License 2.0
5 stars 4 forks source link

Add STM32H7xx driver #26

Open equationcrunchor opened 2 years ago

equationcrunchor commented 2 years ago

Adds STM32H7xx driver for inverter. Based off the code that @Swissking1 wrote in the rod-add-h7 branch, but fixed receiving messages, message sizes, and made to work with current CANlib code generation.

I'd like Vedantha to test this code on the inverter before merging. I'll add him to the organization and @ him here once I learn his public GitHub handle.

Vedantha, switch your CANlib submodule to this branch and test the inverter. You'll need to make some changes to board.mk: Add CANLIB_ARCH := $(shell echo $(MCU) | cut -c1-7)xx And add -DCANLIB_ARCH="$(CANLIB_ARCH)" -DCANLIB_ARCH_$(CANLIB_ARCH) to COMMON_DEFS