[En-Nut-Discussion] WinAVR-20080512 -- same error as 20080411

Nathan Moore nategoose at gmail.com
Tue May 20 22:56:44 CEST 2008


> I added the following line to include/arch/avr/gcc.h:
>
> #ifndef _SLEEP_MODE_MASK
> #define _SLEEP_MODE_MASK  (~(_BV(SM0) | _BV(SM1) | _BV(SM2)))
> #endif
>
> This is only a dirty hack. Better one should know how this mask is named
> in newer avrlibc versions. Up to know I don't know a better solution :/


That would still be a hack, if it were possible.  gcc's newer avrlibc hasn't
renamed _SLEEP_MODE_MASK,
but done away with it entirely.  They've split up the sleep mode stuff a lot
for different AVRs and calculate
the values in the macro functions without making a _SLEEP_MODE_MASK value.
Thanks for the work around, though.  I had tried something similar, but kept
getting undefined symbol and/or
undefined identifier problems because I didn't really know what I was doing.

Nathan



More information about the En-Nut-Discussion mailing list