[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] SIGNAL or INTERRUPT ?!
From: |
User Tomdean |
Subject: |
Re: [avr-gcc-list] SIGNAL or INTERRUPT ?! |
Date: |
Sat, 3 Sep 2005 09:38:59 -0700 (PDT) |
The difference is in the compiler and the code it supplies for the
handler. Section 6.20.6, SIGNAL(...). Section 6.20.4, INTERRUPT(...).
Lookup the respective __attribute__ in the gcc documents.
In avr/signal.h,
/** \def SIGNAL(signame)
\ingroup avr_interrupts
\code#include <avr/signal.h>\endcode
Introduces an interrupt handler function that runs with global interrupts
initially disabled. */
...
#define SIGNAL(signame) \
void signame (void) __attribute__ ((signal)); \
void signame (void)
/** \def INTERRUPT(signame)
\ingroup avr_interrupts
\code#include <avr/signal.h>\endcode
Introduces an interrupt handler function that runs with global interrupts
initially enabled. This allows interrupt handlers to be interrupted. */
...
#define INTERRUPT(signame) \
void signame (void) __attribute__ ((interrupt)); \
void signame (void)
tomdean