Best way to create a generic library
Building a static library would seem like a difficult task.
In crossstudio I have a general project which used the stdperph library. This project was included in the specific application project. By including it, it would inherent the settings from the specific application (chip type etc). This solved the problems with all the ifdefs and I could include all library code at once.
In my own code I still had to take into account the different capabilities of the chip types but this was managable with some ifdefs.
Is such a work flow possible with SW?