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

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

Re: AW: [avr-gcc-list] Interrupt handling


From: Theodore A. Roth
Subject: Re: AW: [avr-gcc-list] Interrupt handling
Date: Wed, 26 May 2004 08:33:52 -0700 (PDT)

On Wed, 26 May 2004, Oliver Schulz wrote:

> Hi Kreyl,
>
> Can you try this:
> SIGNAL (SIG_OVERFLOW0)
> {};
>
> Notice the braces.

That will work, but you get all the prologue and epilogue register
saving/restoring (i.e. un-needed overhead).

The avr-libc <avr/signal.h> header provides an easy way to handle this:

  EMPTY_INTERRUPT(SIG_OVERFLOW0)

Notice the lack of semicolon. I just tested and it works with or without
the semicolon. Remember that this is essentially a function definition,
so the semicolon at the end seems to be optional.

---
Ted Roth
PGP Key ID: 0x18F846E9
Jabber ID: address@hidden


reply via email to

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