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

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

[avr-libc-dev] power.h addition


From: Frédéric Nadeau
Subject: [avr-libc-dev] power.h addition
Date: Wed, 21 Jul 2010 18:32:30 -0400

Hi folks,

For the command clock_prescale_set() and  clock_prescale_get(),
devices ATmega128/128A & 64/64A are not covered since they seems to be
the only ones that make uses of XDIV rather than CLKPR.

Attached patch is for discussion purposes. I'm not much of an
assembler guru, so functions are in plain C. Code is working well on a
ATmega128(I don't have any 64).

Test code is also included. Setup is a STK500 w/address@hidden
with port B connected to leds.

I shall make a formal patch file(including Doxygen comments) would
people here finds this addition appropriate.

Thanks for your comments.

Frédéric Nadeau ing. jr

Attachment: power_diff.h
Description: Text Data

Attachment: clkTest.c
Description: Text Data


reply via email to

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