This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/71000] New: Wrong defines for ATMEGA328p
- From: "soltan.gris at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 May 2016 17:37:07 +0000
- Subject: [Bug target/71000] New: Wrong defines for ATMEGA328p
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71000
Bug ID: 71000
Summary: Wrong defines for ATMEGA328p
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: soltan.gris at gmx dot net
Target Milestone: ---
Target: AVR
In the iom328p.h are the defines for the Portpins PORTyx while in the other .h
files is it Pyx. Where y is the Port and x the pin number.
iom328p.h :
#define PORTB _SFR_IO8(0x05)
#define PORTB0 0
#define PORTB1 1
#define PORTB2 2
#define PORTB3 3
#define PORTB4 4
#define PORTB5 5
#define PORTB6 6
#define PORTB7 7
iotn2313.h
/* Data Register, Port B PORTB[7:0] */
#define PORTB _SFR_IO8(0x18)
#define PB7 7
#define PB6 6
#define PB5 5
#define PB4 4
#define PB3 3
#define PB2 2
#define PB1 1
#define PB0 0
iomxx4.h
#define PORTB _SFR_IO8(0x05)
#define PB7 7
#define PB6 6
#define PB5 5
#define PB4 4
#define PB3 3
#define PB2 2
#define PB1 1
#define PB0 0
Kind regards