[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #31267] misleading header iom128rfa1.h
From: |
Ilya |
Subject: |
[avr-libc-dev] [bug #31267] misleading header iom128rfa1.h |
Date: |
Thu, 07 Oct 2010 06:48:53 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3 |
URL:
<http://savannah.nongnu.org/bugs/?31267>
Summary: misleading header iom128rfa1.h
Project: AVR C Runtime Library
Submitted by: ibagrak
Submitted on: Thu 07 Oct 2010 06:48:52 AM GMT
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: libc code
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: Unknown
Fixed Release: None
_______________________________________________________
Details:
I am referring to the file "iom128rfa1.h"
starting at line 5227
/* USART2, Rx Complete */
#define USART2_RX_vect _VECTOR(51)
#define USART2_RX_vect_num 51
and at line 5240
/* USART3, Rx Complete */
#define USART3_RX_vect _VECTOR(54)
#define USART3_RX_vect_num 54
According to the documentation "doc8266.pdf" page 212 and 213
"3. Not usefull in ATmega128RFA1 due to limited pin count."
Therefore this chip does NOT have uart2 and uart3
When writing code to work on multiple CPUs, many people use #if defined() to
determine if a feature is available or not.
I had in my code
#if defined(USART3_RX_vect)
...
#endif
to determine if USART3 is present. Therefore my code tried to use USART3 but
it was not present.
Therefore the .h file contradicts the documentation. In this case the
documentation is correct and the .h file is misleading
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?31267>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #31267] misleading header iom128rfa1.h,
Ilya <=