CUBE IDE C code sharing
Good morning,
I apologize if this question is a bit dumb, I'm still learning embedded programming.
I'd like to know if its possible to share code between projects in STM CUBE IDE.
The idea is to have like a "folder" with one (or many) .h and .c files. Then in the properties of each project, when I need those files I just add them to the 'Paths and Symbols'.
And then wen I want to change the behavior I only change it once for all the projects.
That I already can do. The problem is that I don't know how to get that "folder" to compile. I know that compiling is a device-targeted procedure but the code in those files that I want to include won't have any reference to any specific platform.
I want to do generic code using standard libraries so it can be included in all the project's I create regardless of the micro controller.
That's why I need it to be able to "pre compile"?? without specifying a target device? Just to know whether the code is written ok.
Thank you for your help!