avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Re: [avr-libc-dev] RFD: more avr-libc API changes


From: Russell Shaw
Subject: Re: [avr-gcc-list] Re: [avr-libc-dev] RFD: more avr-libc API changes
Date: Fri, 09 Sep 2005 10:58:53 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050802 Debian/1.7.10-1

Zane D. Purvis wrote:
Joerg Wunsch wrote:

As Matthew MacClary wrote:

(About whether to keep <avr/interrupt.h> or <avr/signal.h> after
merging their contents.)

   My suggestion would be to change INTERRUPT to be the same as
SIGNAL, and then deprecate SIGNAL.

How about changing the name to "ISR," which would do the same thing as the existing "SIGNAL"?

#include <avr/isr.h>

ISR( SIG_ADC ) {
   // interrupt service routine code here
}

Then, SIGNAL and INTERRUPT can both be deprecated (avoiding future confusion).

You could also use INTERRUPT_().




reply via email to

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