bugAVR C Runtime Library - Bugs: bug #34002, pinouts.h needs a small cast

 
 

bug #34002: pinouts.h needs a small cast

Submitted by:  Dirk-Willem van Gulik <dirkx>
Submitted on:  Sat 13 Aug 2011 10:30:09 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Works For MePercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: 1.7.*Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 28 Dec 2011 09:12:00 PM UTC, comment #2:

Uncomprehensible bug report, reference to "below cast" cannot
be resolved, request for more detailed information timed out.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Mon 26 Sep 2011 02:54:49 PM UTC, comment #1:

I don't know where you got the code below, but that is not in avr/portpins.h. We need to know the exact header file and code in order to fix anything.

Eric Weddington <arcanum>
Project Administrator
Sat 13 Aug 2011 10:30:09 AM UTC, original submission:

Adding below cast in avr/include/avr/portpins.h quells the various warnings and lets you run on Werror.

// appropriate addresses for various functions (e.g. reading
// and writing)
const uint16_t PROGMEM port_to_mode_PGM[] = {
NOT_A_PORT,
NOT_A_PORT,
(uint16_t)&DDRB,
(uint16_t)&DDRC,
(uint16_t)&DDRD,
};

const uint16_t PROGMEM port_to_output_PGM[] = {
NOT_A_PORT,
NOT_A_PORT,
(uint16_t)&PORTB,
(uint16_t)&PORTC,
(uint16_t)&PORTD,
};

const uint16_t PROGMEM port_to_input_PGM[] = {
NOT_A_PORT,
NOT_A_PORT,
(uint16_t)&PINB,
(uint16_t)&PINC,
(uint16_t)&PIND,
};

Dirk-Willem van Gulik <dirkx>

 

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

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

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 Dec 2011 09:12:00 PM UTCjoerg_wunschStatusNeed Info=>Works For Me
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed
    Mon 26 Sep 2011 02:54:49 PM UTCarcanumStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1