avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Re: [avr-gcc-list] Different usage of pre defined modes


From: Theodore A. Roth
Subject: [avr-libc-dev] Re: [avr-gcc-list] Different usage of pre defined modes
Date: Sun, 5 Jan 2003 20:52:41 -0800 (PST)

Hi Volkmar,

Looking over the sleep.h file, I see that I wrote it incorrectly. Or'ing the 
SMn values without the _BV() wrapper is wrong. The attached patch (which 
I've committed to cvs) fixes it.

Now you should be able to use the more consistent call to set_sleep_mode() 
without the need for _BV().

Ted Roth

On Sun, 5 Jan 2003, Volkmar Dierkes wrote:

:)Hi,
:)
:)I found the following issue. If I want to go to ADC noise 
:)cancelation mode I have to define the sleep mode via
:)
:)  set_sleep_mode(_BV(SLEEP_MODE_ADC));
:)
:)But when I want to go to idle mode I must not use _BV:
:)
:)  set_sleep_mode(SLEEP_MODE_IDLE);
:)
:)I think there is no other solution to get it to the same behaviour? 
:)It isn't a relevant problem for me, but I think it would be fine to 
:)have it in a same way.
:)
:)Volkmar
:)avr-gcc-list at http://avr1.org
:)

Attachment: sleep.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]