URL: <http://savannah.nongnu.org/bugs/?23234>
Summary: Alternate interrupt macro Project: AVR C Runtime Library Submitted by: ronkrem Submitted on: Monday 05/12/2008 at 05:06 Category: Feature Request Severity: 3 - Normal Priority: 5 - Normal Item Group: Header files Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.6.2 Fixed Release: None _______________________________________________________ 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. Ron Kreymborg _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Monday 05/12/2008 at 05:06 Name: addline.c Size: 6kB By: ronkrem <http://savannah.nongnu.org/bugs/download.php?file_id=15655> ------------------------------------------------------- Date: Monday 05/12/2008 at 05:06 Name: interrupt_patch.txt Size: 4kB By: ronkrem <http://savannah.nongnu.org/bugs/download.php?file_id=15656> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?23234> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev