[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-libc-dev] [bug #23234] Alternate interrupt macro
From: |
Weddington, Eric |
Subject: |
RE: [avr-libc-dev] [bug #23234] Alternate interrupt macro |
Date: |
Mon, 12 May 2008 07:51:49 -0600 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Ron Kreymborg
> Sent: Sunday, May 11, 2008 11:06 PM
> To: Ron Kreymborg; address@hidden
> Subject: [avr-libc-dev] [bug #23234] Alternate interrupt macro
>
>
> Details:
>
> In each ioxxx.h header file in avr/include/avr, and for each
> entry in the
> file:
>
> #define XXXXXX_vect ##
>
> add the new line:
>
> #define XXXXXX_vect_num ##
>
> where the XXXXXXs and ## match. Thus a typical entry would become:
>
> /* Timer/Counter1 Capture Event */
> #define TIMER1_CAPT_vect_num 5
> #define TIMER1_CAPT_vect _VECTOR(5)
> #define SIG_INPUT_CAPTURE1 _VECTOR(5)
>
> Rather than produce a diff for each header, I have attached a simple C
> program that performs this conversion.
>
> The intent of this patch is to support the gcc patch also attached.
>
Hi Ron,
Does your program *only* add the _vect_num definitions? Or does it also
add the SIG_ definitions as well? I would rather NOT have it add the
SIG_ definitions as those are deprecated and we are no longer adding
those definitions to header files.
Thanks,
Eric