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: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: ConfirmedPercent Complete: 0%
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: OpenRelease: 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Aug 2016 08:53:01 PM UTCc4757pStatusNone=>Confirmed
      Release1.8.0=>2.0.0

    Back to the top


    Powered by Savane 3.1-cleanup1