bugAVR C Runtime Library - Bugs: bug #33858, in avr/power.h,...

 
 

bug #33858: in avr/power.h, clock_prescale_set() not defined for mega328

Submitted by:  Galen Seitz <galens>
Submitted on:  Mon 25 Jul 2011 10:53:52 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: 1.7.*Fixed Release: 1.8.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 25 Jul 2011 10:53:52 PM UTC, original submission:

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. 8271D­AVR­05/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

Galen Seitz <galens>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by galens (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 26 Sep 2011 03:13:11 PM UTCarcanumStatusNone=>Fixed
      Percent Complete0%=>100%
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.8.0

    Back to the top


    Powered by Savane 3.1-cleanup1