Bob Paddock wrote:
On Tue, 18 Jul 2006 19:00:26 -0400, Eric Weddington <[EMAIL PROTECTED]> 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


_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to