[bug #56536] 328PB power reduction register PRPTC and PRSPI1 switch missing from power.h

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #56536] 328PB power reduction register PRPTC and PRSPI1 switch missing from power.h

Kevin Cuzner-2
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/


_______________________________________________
AVR-libc-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev
Reply | Threaded
Open this post in threaded view
|

[bug #56536] 328PB power reduction register PRPTC and PRSPI1 switch missing from power.h

Kevin Cuzner-2
Additional Item Attachment, bug #56536 (project avr-libc):

File name: power.h.patch                  Size:2 KB
    <https://savannah.nongnu.org/file/power.h.patch?file_id=47118>



    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
AVR-libc-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev