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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34002: pinouts.h needs a small cast

Submitter:  Dirk-Willem van Gulik <dirkx>
Submitted:  Sat 13 Aug 2011 10:30:09 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Works For Me Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Closed
Release:  1.7.* Fixed Release:  None

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>
Group administrator
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>
Group 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.)

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

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-28 joerg_wunsch StatusNeed Info Works For Me
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2011-09-26 arcanum StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code