> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Ron Kreymborg > Sent: Wednesday, January 16, 2008 6:42 PM > To: avr-chat@nongnu.org > Subject: [avr-chat] C++ Interrupts > > Hi Folks > > In the past I have handled peripheral interrupts by a simple > vector into a > class public method: > > ISR(TIMER0_OVF_vect) > { > Timer0.OverflowInterrupt(); > } > > However, IMHO a more elegant C++ solution would be to define > the interrupt > handler as a private function within the class. > > Hardly practical, so can anyone suggest a declaration that > would make this > link automatic within avr-gcc? >
Avr-gcc is expecting a fixed name for the vector. See avr-libc for how the ISR macro is defined. Note that there is no C++ maintainer for AVR GCC. Eric Weddington _______________________________________________ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat