Discussion:
[avr-libc-dev] [bug #45185] inconsistent port bit definitions
anonymous
2015-05-25 19:56:31 UTC
Permalink
URL:
<http://savannah.nongnu.org/bugs/?45185>

Summary: inconsistent port bit definitions
Project: AVR C Runtime Library
Submitted by: None
Submitted on: Mon 25 May 2015 07:56:30 PM UTC
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email: ***@gmail.com
Open/Closed: Open
Discussion Lock: Any
Release: 1.8.0
Fixed Release: None

_______________________________________________________

Details:

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.





_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?45185>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Chris Pavlina
2016-08-12 20:53:02 UTC
Permalink
Update of bug #45185 (project avr-libc):

Status: None => Confirmed
Release: 1.8.0 => 2.0.0

_______________________________________________________

Follow-up Comment #1:

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

_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?45185>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/

Continue reading on narkive:
Loading...