Am 28.12.2013 06:11, schrieb Onno Kortmann: > Is there any way to have avr-gcc insert this, or at least > the parts that are specified on the command line (such as -mcpu=...), > automatically?
While macros can be put in there, avr-gcc doesn't #define the "atmega644" term, but __AVR_ATmega644__ instead. So this would require something like #ifdef __AVR_ATmega644__ #define MCU "atmega644" #elif ... All the Makefiles I've seen so far do the reverse, like setting the --mcpu parameter according to some earlier definition. Then you can use this earlier definition directly. Markus -- - - - - - - - - - - - - - - - - - - - Dipl. Ing. (FH) Markus Hitter http://www.reprap-diy.com/ http://www.jump-ing.de/ _______________________________________________ Simulavr-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/simulavr-devel
