--- In AVR-Chat@yahoogroups.com, "Don Kinzer" <dkinzer@...> wrote: > > --- 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 > Don, Oops, my bad! No P - and, sure enough, the '644 only has one. Guess I need ro read with more care. I've been away from AVR's for three or four years. The last project I did used a '128 with the Imagecraft compiler so I have a lot of catchup ground to cover... Thanks. Bruce
Message
Re: WinAVR-20080610 header Bug?
2008-09-21 by Bruce Parham
Attachments
- No local attachments were found for this message.