eclipse generator - compiler definitions for avr-gcc
Hi.
avr-gcc generates special definitions depends on the -mmcu=xxx
switch passed in command line (when you pass atmega8 then compiler generates __AVR_ATmega8__
which then is used in ifdefs...).
i would like to add -mmcu=atmega8
switch to the avr-gcc call, which is used to generate include paths and symbols in .cproject eclipse project file to see there something like:
<pathentry kind="mac" name="__AVR_ATmega8__" path="" value="1"/>
then eclipse indexer correctly recognizes symbols in avr headers