avr-libc icon indicating copy to clipboard operation
avr-libc copied to clipboard

[bug #45185] inconsistent port bit definitions

Open avrs-admin opened this issue 3 years ago • 1 comments

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

avrs-admin avatar Jan 31 '22 02:01 avrs-admin

Chris Pavlina Fri 12 Aug 2016 10:53:01 PM CEST

I'm guessing this is a legitimate bug, since the definitions for other registers in the same file (iotnx5.h) otherwise follow convention.

avrs-admin avatar Jan 31 '22 02:01 avrs-admin