[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] 2 interrupt sharing the same ISR
From: |
gouy yann |
Subject: |
Re: [avr-gcc-list] 2 interrupt sharing the same ISR |
Date: |
Sat, 15 Jan 2005 02:41:44 +0100 (CET) |
thank you very much, Ned.
you made it!
Yann
--- Ned Konz <address@hidden> a écrit :
> On Friday 14 January 2005 2:21 pm, gouy yann wrote:
> > I'd like to know if someone has an easy trick to
> make
> > 2 interrupts ( timer overflow and timer output
> compare
> > ) jump to the same address (ISR).
> >
> > duplicating the code or calling the same function
> from
> > the ISRs is not that much convincing in term of
> flash
> > or stack comsumption.
> >
> > I am considering using only the output compare as
> > overflow is somehow a particular case of it.
>
> Why not just do something like this (atmega8):
>
> // SIGNAL(SIG_OVERFLOW1)
> //
> #define METOO_INTERRUPT(signame) \
> void signame (void) __attribute__ ((naked)); \
> void signame (void) { __asm__ __volatile__ ("" ::);
> }
>
> METOO_INTERRUPT(SIG_OVERFLOW1)
>
> SIGNAL(SIG_OUTPUT_COMPARE1A)
> {
> }
>
> --
> Ned Konz
> http://bike-nomad.com
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/