I'm trying to find a way to set a -D compiler option from within the boards.txt file. Basically set a #define for use in code. There are already some special ones like board.vid but is there a generic way to do it?
Somehow the Teensy add-on adds a little magic that allows the IDE to recognize options like: .board.define0=-DHELLOWORLD .board.option0=-DHELLOWORLD
In other words, add the -DHELLOWORD (#define HELLOWORLD) to the command line for GCC.
BUT, I can't get this to work without the Teensy add-on installed.
Is there a way to do this with the stock IDE?