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

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

Re: [avr-gcc-list] Inserting code before context save in an ISR (fornest


From: Christian Ludlam
Subject: Re: [avr-gcc-list] Inserting code before context save in an ISR (fornested interrupts)
Date: Mon, 13 Aug 2007 12:19:33 +0100
User-agent: Messenger-Pro/1.00c (MsgServe/1.00a) (RISC-OS/5.09) POPstar/2.05

On 7 Aug Joerg Wunsch wrote:

> Eric Weddington <address@hidden> wrote:
> 
> > And to do this using avr-libc, is to use the INTERRUPT() macro
> > (instead of ISR()):
> 
> ....which has been deprecated, due to its confusing name.
> 
> So the "official" solution is:
> 
> void YOUR_VECTOR_vect(void) __attribute__((interrupt));
> void
> YOUR_VECTOR_vect(void)
> {
>    /* your ISR goes here */
> }

Oh that's awful! I don't see why using a clumsy attribute syntax with the
same deprecated name is any less confusing... can't we add a new macro,
something like REENTRANT_ISR() or ISR_SEI()?

-- 
Christian Ludlam
address@hidden




reply via email to

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