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

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

[avr-libc-dev] [bug #33858] in avr/power.h, clock_prescale_set() not def


From: Galen Seitz
Subject: [avr-libc-dev] [bug #33858] in avr/power.h, clock_prescale_set() not defined for mega328
Date: Mon, 25 Jul 2011 22:53:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110622 CentOS/3.6-1.el5.centos Firefox/3.6.18

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. 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





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?33858>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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