avr-gcc-list
[Top][All Lists]
Advanced

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

RE: [avr-gcc-list] RFC: Patch for "signal" argument


From: Ron Kreymborg
Subject: RE: [avr-gcc-list] RFC: Patch for "signal" argument
Date: Tue, 1 Apr 2008 23:17:45 +1100

/* External Interrupt Request 0 */
#define INT0                            1
#define INT0_vect                       _VECTOR(1)
#define SIG_INTERRUPT0                  _VECTOR(1)

Another little gotcha is that the Atmel interrupt names INT0, INT1, etc are
already used in avr-gcc as interrupt mask bits. So the new proposal is to
append "_num" to all the signal argument names. For example:

/* External Interrupt Request 0 */
#define INT0_num                        1
#define INT0_vect                       _VECTOR(1)
#define SIG_INTERRUPT0                  _VECTOR(1)

Any other ideas?

Ron






reply via email to

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