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 mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev