Northeastern-Electric-Racing / Embedded-Base

A collection of drivers, middleware, and development tools for use across systems
2 stars 1 forks source link

Add hardware/project key to each project makefile and drivers #138

Open dyldonahue opened 3 months ago

dyldonahue commented 3 months ago

Current Features

Right now, we have drivers that are hard set to individual stm32 types - they are not cross compatible

Desired Additional Features

We should be able to pass some sort of key or macro from each project that can be read by drivers to include the right files. Probably will need to explore how best to add this, and then update each driver to have #ifdefs to include the proper file.

NOTE: possibly will become redundant or obsoleted by #139 . so unless its super easy mayeb wait until progress is made on that ticket to begin this if still desired

Screenshots (as needed)

No response

dyldonahue commented 1 month ago

Cmake will mostly handle this, but the drivers wills till need to have some #ifdef #define.. depending on some macrose set by the Cmake. So, only those ifdefs are in scope of this ticket