bugAVR C Runtime Library - Bugs: bug #45185, inconsistent port bit definitions

 
 

bug #45185: inconsistent port bit definitions

Submitted by:  None
Submitted on:  Mon 25 May 2015 07:56:30 PM UTC  
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Confirmed Percent Complete:  0%
Assigned to:  None Originator Email:  -email is unavailable-
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 12 Aug 2016 08:53:01 PM UTC, comment #1:

I'm guessing this is a legitimate bug, since the definitions for other registers in the same file (iotnx5.h) otherwise follow convention.

Chris Pavlina <c4757p>
Project Member
Mon 25 May 2015 07:56:30 PM UTC, original submission:

Most AVR headers define the port bits by port name and bit number, as follows (taken from iotn84a.h):
#define PORTB0 0
#define PORTB1 1
...
These bit definitions match s. 10.3.5 of datasheet.

However, in iotnx5.h, PORTB0 is not defined. Instead it defines PB0:
...
#define PB1 1
#define PB0 0

This does NOT match s. 10.4.2 of the datasheet.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by c4757p (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-12 c4757p StatusNone => Confirmed
        Release1.8.0 => 2.0.0

    Back to the top


    Powered by Savane 3.3