lhr-solar / Embedded-Sharepoint

This repository contains files that can be shared among us, the embedded design teams.
MIT License
3 stars 0 forks source link

Added HAL and Makefile for STM32L431 #49

Open Lakshay983 opened 4 months ago

Lakshay983 commented 4 months ago

PeripheralSOM is going to use the STM32L4 mcu, so we need to have that HAL code.

I made it an option in the makefile to select compiling something for STM32L4 by setting chip=L4 while making. I get a few warnings due to BSP.c but that's due to it only being made for the F4 I assume.

Lakshay983 commented 4 months ago

Looks mostly good but the makefile for L4 needs to be modifed. See what was changed in the F4 makefile (takes in additional inputs, has sources and includes defined differently, compiled differently for a test and for a regular make (using main.c), etc.)

Ah I didn't see the F4 makefile was modified. I can go look through that.

Lakshay983 commented 3 months ago

I need to fix the following before merging:

There will prob be a need for a better testing framework but that is smth for a different pr.

IshDeshpa commented 1 month ago

Just took a look at #54; sorry if most of these comments don't mean much in the context of those changes :')