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

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

[avr-libc-dev] [bug #56536] 328PB power reduction register PRPTC and PRS


From: szotsaki
Subject: [avr-libc-dev] [bug #56536] 328PB power reduction register PRPTC and PRSPI1 switch missing from power.h
Date: Fri, 21 Jun 2019 11:14:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.122 Safari/537.36 Vivaldi/2.3.1440.61

URL:
  <https://savannah.nongnu.org/bugs/?56536>

                 Summary: 328PB power reduction register PRPTC and PRSPI1
switch missing from power.h
                 Project: AVR C Runtime Library
            Submitted by: szotsaki
            Submitted on: Fri 21 Jun 2019 03:14:26 PM UTC
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: libc code
                  Status: None
        Percent Complete: 0%
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 2.0.0
           Fixed Release: None

    _______________________________________________________

Details:

In iom328pb.h you can find the following two testing variables for ATmega
328PB Power Reduction Register 1:

* __AVR_HAVE_PRR1_PRSPI1 and
* __AVR_HAVE_PRR1_PRPTC along with their bit definition:

* #define PRSPI1  2
* #define PRPTC   4

Unfortunately, using (i.e. enabling and disabling) them is not possible via
power.h since there are no functions (defines) which would allow that.

Also, in power.h the giant #ifdef starting at line 1296 is missing its the
define for __AVR_ATmega328PB__ (though I don't know if it's ok to include
there).

And if you're already there, could you please convert the encoding of power.h
to standard UTF-8? Thank you very much!




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56536>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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