URL:
<http://savannah.nongnu.org/bugs/?33858>
Summary: in avr/power.h, clock_prescale_set() not defined for
mega328
Project: AVR C Runtime Library
Submitted by: galens
Submitted on: Mon 25 Jul 2011 10:53:52 PM GMT
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Header files
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.7.*
Fixed Release: None
_______________________________________________________
Details:
In the include file avr/power.h, clock_prescale_set() is defined for the
mega328P, but not for the mega328. As far as I can tell from the
ATmega48A/PA/88A/PA/168A/PA/328/P datasheet(Rev. 8271DAVR05/11), CLKPR is
a valid mega328 register.
Patch should be as simple as adding
|| defined(__AVR_ATmega328__) \
at line 1387 in r2245, just before the test for __AVR_ATmega328P__.
thanks,
galen
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?33858>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev