Is there any way to pass info such as board type from the boards.txt file to the compiler?
Thanks
Mark
Is there any way to pass info such as board type from the boards.txt file to the compiler?
Thanks
Mark
Follow up on previous question,
I found a way to do what I wanted, but I would still like a more elegant way of passing a compile option (macro) from the boards.txt file
#ifdef AVR_ARCH
#if (AVR_ARCH == 5)
#define TOUCH_STEALTH
#endif
#if (AVR_ARCH == 6)
#define TOUCH_SLIDE
#endif
#else
#error Unable to determine hardware platform (TOUCH_STEALTH / TOUCH_SLIDE)
#endif