Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: WinAVR-20080610 header Bug?

2008-09-21 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Bruce Parham" <obparham@...> wrote:
> Is this a bug or should I keep reading?
I don't see that in my copy.  Perhaps I edited it but I don't recall 
doing so.

The definitions for the vectors of the second UART are contained in 
the "else" part of a conditional where the initial test is for the 
mega644 (non-P version).  Consequently, they will be present when 
compiling for the mega324P and mega644P.

#if defined(__AVR_ATmega644__)

# define _VECTORS_SIZE 112

#else /* !defined(__AVR_ATmega644__) */

/* USART1, Rx Complete */
/* USART1 RX complete */
#define USART1_RX_vect			_VECTOR(28)
#define SIG_USART1_RECV			_VECTOR(28)

/* USART1 Data register Empty */
/* USART1 Data Register Empty */
#define USART1_UDRE_vect		_VECTOR(29)
#define SIG_USART1_DATA			_VECTOR(29)

/* USART1, Tx Complete */
/* USART1 TX complete */
#define USART1_TX_vect			_VECTOR(30)
#define SIG_USART1_TRANS		_VECTOR(30)

# define _VECTORS_SIZE 124

#endif /* defined(__AVR_ATmega644__) */

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.