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(forneste


From: Eric Weddington
Subject: RE: [avr-gcc-list] Inserting code before context save in an ISR(fornested interrupts)
Date: Tue, 07 Aug 2007 07:30:58 -0600


> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Monday, August 06, 2007 11:21 PM
> To: address@hidden
> Subject: Re: [avr-gcc-list] Inserting code before context
> save in an ISR(fornested interrupts)
>
> 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 */
> }

True, good point. Thanks for the correction.

Eric






reply via email to

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