[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Sharing interrupts

From: Geoffrey Wossum
Subject: Re: [avr-gcc-list] Sharing interrupts
Date: Mon, 8 Dec 2003 08:39:32 -0600
User-agent: KMail/1.5

On Monday 08 December 2003 03:35 am, Pablo Bleyer Kocik wrote:
>   I was wondering, is there an easy way to register two interrupt vectors
> with the same interrupt handler? The SIGNAL/INTERRUPT macros expand to a
> function declaration and function definition header, so it is not possible
> to assign function pointers with them.

On an AVR, the interrupt vector table is located at the beginning of program 
memory.  You're not really registering anything.  You're (with the help of 
compiler and linker) putting absolute addresses into a static IVT.  
Therefore, no, the architecture itself can not chain two interrupt handlers 
for you.  But you could write one ISR that in turn calls whatever functions 
you want.  

Geoffrey Wossum
Software Engineer
Long Range Systems - http://www.pager.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]