avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Two interrupts one function?


From: Eric Weddington
Subject: Re: [avr-gcc-list] Two interrupts one function?
Date: Mon, 15 May 2006 08:34:25 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Björn Haase wrote:
address@hidden wrote on Sonntag, 14. Mai 2006 18:05 :

Re: [avr-gcc-list] Two interrupts one function?


you could insert in your irq routine the line

 asm (".global __vector_3\n\t .equ __vector_3, __vector_13");

Where __vector_13 is the main name of your irq function and __vector_3 is the alias that you are newly defining. This way, you will be avoiding the unnecessary jump.

Would it be worth it to work this up in a C macro and add it to avr-libc?

This is a fairly common question and it would be nice to have a simple solution for users.

--
Eric Weddington




reply via email to

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