stm32-hal icon indicating copy to clipboard operation
stm32-hal copied to clipboard

Examples for creating firmware for multiple targets?

Open saosebastiao opened this issue 10 months ago • 1 comments

I realize there are probably hundreds of ways to do the same thing, but it would be nice to have an example of some best practices for writing code that targets different microcontrollers, using different pinouts, etc., perhaps using the embedded_hal feature (if that makes it easier, not sure). For example, I'm currently targeting a G4 microcontroller, but what if I want to create a different board with an additional sensors and firmware features on an H5 microcontroller, what would be the best way to write my code to ensure I can easily port existing functionality in the new target?

saosebastiao avatar Dec 18 '24 19:12 saosebastiao