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

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

Re: [avr-gcc-list] External interrupt assembler routine - how?


From: Anich Gregor
Subject: Re: [avr-gcc-list] External interrupt assembler routine - how?
Date: Sat, 12 Jul 2003 03:36:27 +0200
User-agent: KMail/1.5.2

Hi!

To put interrupts into external assembler files just export the symbol:

#include <avr/signal.h>

    .global SIG_INTERRUPT0
SIG_INTERRUPT0:
    reti

Gregor

On Saturday 12 July 2003 00:50, Thomas Rehm wrote:
> Hi folks,
>
> I want to declare a routine in an external assembler source as an
> interrupt, because I want to get rid off the overhead which avr-gcc
> involves, when an Interrupt is declared via the AVR-GCC Interrupt API.
> Too, I want to reserve some registers for only use by this routine.
>
> Up to now, I found only infos about inline assembler and how to link
> external assembling code - but neither how to get an interrupt pointer to
> my routine nor how to reserve registers without pushed and popped by the
> compiler.
>
> Is there any way?
>
> thanks,
> Tom.
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list

-------------------------------------------------------



reply via email to

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