bugAVR C Runtime Library - Bugs: bug #23032, Define PORTxn, PINxn, DDxn bit...

 
 

bug #23032: Define PORTxn, PINxn, DDxn bit names in iomxx4.h.

Submitted by:  Eric Weddington <arcanum>
Submitted on:  Wed 23 Apr 2008 06:32:50 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: 1.6.2Fixed Release: 1.7.0

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 23 Apr 2008 06:41:01 PM UTC, comment #1:

Hmm, are you sure?

I see PORTxn, DDRxn, and PINxn bit names /are/ defined in
avr/iom1284p.h. However, the "generic" bit names (Pxn) are
not defined for that device. They should probably be
supplied through avr/portpins.h. However, the logic there
is just the opposite of what would be needed: they assume
the device's header file defines whatever Pxn bits are
applicable for each device, and then conditionally derive
PORTxn names from those.

This should probably turned around: make avr/portpins.h
define Pxn based on the presence of PORTxn. Alas, this
requires to rewrite all the existing device header files.

Another option would be to extend avr/portpins.h like:

#if defined(PORTA0) && !defined(PA0)
# define PA0 PORTA0
#endif

Joerg Wunsch <joerg_wunsch>
Project Administrator
Wed 23 Apr 2008 06:32:50 PM UTC, original submission:

Define PORTxn, PINxn, DDxn bit names in iomxx4.h. This is to be consistent with XML device files and with iom1284p.h.

Eric Weddington <arcanum>
Project AdministratorIn charge of this item.

 

(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 joerg_wunsch (Posted a comment)
  • -unavailable- added by arcanum (Submitted the item)
  •  

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Apr 2008 06:22:46 PM UTCarcanumStatusNone=>Fixed
      Percent Complete0%=>100%
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.7.0

    Back to the top


    Powered by Savane 3.1-cleanup1