A brilliant idea from @yglukhov, essentially instead of having the nim.cfg file required to be put within the project by the user, rather require them to write a two line config.nims file which would consist of something along the lines of:
import boardConf
board "teensy"
This would allow us to move all the switches into the board configuration along with providing custom logic for microcontroller specific things (like done with board "teensy" above that would just run switch("define", "board:teensy")
A brilliant idea from @yglukhov, essentially instead of having the nim.cfg file required to be put within the project by the user, rather require them to write a two line
config.nims
file which would consist of something along the lines of:This would allow us to move all the switches into the board configuration along with providing custom logic for microcontroller specific things (like done with
board "teensy"
above that would just runswitch("define", "board:teensy"
)