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,
};
|