avr-libc
avr-libc copied to clipboard
[bug #45185] inconsistent port bit definitions
Mon 25 May 2015 09:56:30 PM CEST
Most AVR headers define the port bits by port name and bit number, as follows (taken from iotn84a.h): #define PORTB0 0 #define PORTB1 1 ... These bit definitions match s. 10.3.5 of datasheet.
However, in iotnx5.h, PORTB0 is not defined. Instead it defines PB0: ... #define PB1 1 #define PB0 0
This does NOT match s. 10.4.2 of the datasheet.
This issue was migrated from https://savannah.nongnu.org/bugs/?45185
Chris Pavlina
I'm guessing this is a legitimate bug, since the definitions for other registers in the same file (iotnx5.h) otherwise follow convention.