The easiest way to do interrupt vector handling is to not use C++. Use straight C, and read the avr-libc user manual on how to implement an Interrupt Service Routine (ISR).
Eric > -----Original Message----- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > org] On Behalf Of Charalampos Alexopoulos > Sent: Tuesday, October 28, 2008 10:26 AM > To: avr-gcc-list@nongnu.org > Subject: [avr-gcc-list] How to handle interrupt vectors ? > > Hi > I have only basic knowledge of c++. What i want to do is to make a > constant member of a class to point an interrupt vector. > Something like : > > class Timer0: > { > public: > static const vector overflow = _VECTOR(9); > ... > ... > }; > > and then in my main programm to use it as : > > int main(void) > { > // some code here > } > > ISR(Timer0::overflow) > { > ... > } > > I read a lot the last few days but i remain clueless on the vector > handling. The best i can wish is somebody to give me an example of how > to do it, but i will be thankfull even with a suggestion for further > reading on topoic. > > Thank you in advance > Charalampos Alexopoulos > > > > > _______________________________________________ > AVR-GCC-list mailing list > AVR-GCC-list@nongnu.org > http://lists.nongnu.org/mailman/listinfo/avr-gcc-list > _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list