[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] Re: [avr-libc-commit] avr-libc ChangeLog include/avr/
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] Re: [avr-libc-commit] avr-libc ChangeLog include/avr/interrupt.h incl... |
Date: |
Mon, 28 Aug 2006 21:50:58 +0200 |
User-agent: |
Mutt/1.5.11 |
As Bernd Trog wrote:
> > * include/avr/interrupt.h: Add the
> > 'externally_visible' attribute on all interrupt
> > service routine macros.
> Note that 'externally_visible' is a new attribute. Introduced with
> 4.1.0, unknown to versions <4.1.0.
Thanks for the heads-up. That means we have to encapsulate that
using some preprocessor magic like:
#if __GNUC__ >= 4
# define __INTR_ATTRS used, externally_visible
#else /* GCC < 4.x */
# define __INTR_ATTRS used
#endif
...
#define ISR(vector) \
void vector (void) __attribute__ ((signal, __INTR_ATTRS)); \
void vector (void)
etc. (Also needed in <compat/deprecated.h> and in the documentation.)
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)