Selecting targets via make configs seems like it doesn't necessarily have an advantage as far as being less complex. Anyone able to point to a good example of this methodology?EV_Builder wrote: ↑Sun Nov 28, 2021 3:18 pm Personally i like more compile time changes and building with make 2 versions of the hex/bin.
But i guess its a taste thing... the reason is that compile time variations means no IF statements in the code when we have a variation point.
(higher performance).
Also for the developer it makes it clearer (syntax highlighting) on which variation he is working.
There is a good discussion on the PlatformIO community forum that goes into working with multiple targets in some detail.
It seems like if it was properly implemented, you would externalize all of the platform specifics and call those in via a single IF statement.