[Icc-avr] #define problem
John Baraclough
j_baraclough at zetnet.co.uk
Mon Sep 24 17:37:51 PDT 2007
OK it's late here, but that's no excuse. Of course that should read
"-DATMega8" and
#ifdef ATMega8
#include <iom8v.h>
#endif
I did say it was case sensitive. :-[
All the best for now,
John
At 00:48 25/09/2007, you wrote:
>Hi Sylvain,
>
>The compiler already defines a macro such as -DATmega8. The
>definition is a direct copy of the string contained in the
>'Project->Options->Device Configuration' list box. All you need to do is:
>
>#ifdef ATmega8
> #include <iom8v.h>
>#endif
>
>Don't forget that the macro is case sensitive and you must copy the
>string exactly.
>
>All the best for now,
>John
More information about the Icc-avr
mailing list