[En-Nut-Discussion] WinAVR-20080512 -- same error as 20080411
Thiago A. Corrêa
thiago.correa at gmail.com
Tue May 20 23:19:59 CEST 2008
Couldn't we just use avrlibc's sleep functions instead?
On Tue, May 20, 2008 at 5:56 PM, Nathan Moore <nategoose at gmail.com> wrote:
>> 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
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
More information about the En-Nut-Discussion
mailing list