bugAVR C Runtime Library - Bugs: bug #56536, 328PB power reduction register...

 
 

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

Submitted by:  szotsaki <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 Assigned to:  None
Percent Complete:  0% Open/Closed:  Open
Release:  2.0.0 Fixed Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Fri 21 Jun 2019 03:14:26 PM UTC, original submission:  

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!

szotsaki <szotsaki>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47118:  power.h.patch added by szotsaki (3KiB - text/x-patch - (Yet untested) patch for the issues listed above)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by szotsaki (Submitted the item)
  •  

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-06-21 szotsaki Attached File- => Added power.h.patch, #47118

    Back to the top


    Powered by Savane 3.5