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

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

Re: [avr-libc-dev] empty interrupts


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] empty interrupts
Date: Thu, 8 May 2003 09:59:39 +0200
User-agent: Mutt/1.2.5i

As E. Weddington wrote:

> > #ifdef __cplusplus
> > #define EMPTY_INTERRUPT(signame)            \
> > extern "C" void signame(void);                          \
> > void signame (void) __attribute__((naked)) ;      \
> > void signame (void) {  __asm__ __volatile__ ("reti" ::); }
> > #else
> > #define EMPTY_INTERRUPT(signame)                \
> > void signame (void) __attribute__((naked)) ;           \
> > void signame (void) { __asm__ __volatile__ ("reti" ::); }
> > #endif
> > 
> > and obvious usage:
> > EMPTY_INTERRUPT(SIG_ADC);
> > 
> > 
> > What about adding this to the avr-libc?
> > 
> 
> 
> Any objections to adding this to avr/signal.h?

None from me, provided it gets a paragraph of doxygenation as well.

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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