URL: <http://savannah.nongnu.org/bugs/?35368>
Summary: Incorrect PCIE/PCIF bit definitions for the ATMEGA169P Project: AVR C Runtime Library Submitted by: abcminiuser Submitted on: Wed 25 Jan 2012 02:37:37 PM GMT Category: Header Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.8.0 Fixed Release: None _______________________________________________________ Details: The header file for the ATMEGA169P contains several errors relating to the EIFR and EIMSK registers. According to the datasheet, PCIF0/PCIE0 to PCIF3/PCIE3 are located in bits 4-7 of the EIFR and EIMSK registers. In the latest AVR Toolchain 3.3.1 version, these definitions are listed as: /* External Interrupt Flag Register */ #define EIFR _SFR_IO8(0x1C) #define PCIF1 7 #define PCIF0 6 /* External Interrupt Mask Register */ #define EIMSK _SFR_IO8(0x1D) #define PCIE1 7 #define PCIE0 6 I.e. PCIE2/PCIF2 and PCIE3/PCIF3 are missing, and the existing bits are in the incorrect register locations (bits 6/7 instead of 4/5). These values are correct in the non-P version of the ATMEGA169 device headers. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?35368> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev