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

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

Re: [avr-libc-dev] RFC: New Power Management API


From: Eric Weddington
Subject: Re: [avr-libc-dev] RFC: New Power Management API
Date: Wed, 19 Jul 2006 08:40:59 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Bob Paddock wrote:
On Tue, 18 Jul 2006 19:00:26 -0400, Eric Weddington <address@hidden> wrote:

The new file would be <avr/power.h> and is attached for review.


Questions? Comments?


I would like to see a macro that sets PRR to it's
default reset state.

Something like:

#define PRR_RESET() (PRR = (uint8_t) -1)

as appropriate for each device.


Sure. Though I would prefer to keep to the same naming convention being used.

How about enable/disable all? Such as:

#define power_all_enable()
#define power_all_disable()

With the actual definition being specific to each AVR; since each one has different available bits in their respective PRR/PRR0/PRR1 registers.

Eric Weddington




reply via email to

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