[Top][All Lists]

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

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

From: Weddington, Eric
Subject: RE: [avr-gcc-list] RFC: Patch for "signal" argument
Date: Tue, 1 Apr 2008 11:07:24 -0600


> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Ron Kreymborg
> Sent: Tuesday, April 01, 2008 6:18 AM
> To: address@hidden
> Subject: RE: [avr-gcc-list] RFC: Patch for "signal" argument

> 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?

Append _vect_num so it relates to the interrupt vector. Like so:

#define INT0_vect_num                   1
#define INT0_vect                       _VECTOR(1)

reply via email to

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