On Mon, Apr 6, 2009 at 12:29 AM, John Myers <atomicdog....@gmail.com> wrote:
> I have an ISR in a library. > I want to be able to compile the ISR with a generic target and not have the > ISR name tied to a specific interrupt vector. > I want to be able to add the library with the ISR to a project and then > have the ISR function name aliased or linked to the appropriate > vector that the specific AVR target uses. > > I'am unable to get the project to compile with a vector name in the vector > jump table. > The ISR itself is added but nothing in the vector jump table. > If I'm understanding what you want correctly, you might be able to do this by making the ISR into an include file, rather than .c . Coincidentally, I just did this today, where I have two options for compiling. I set one of two versions, then in main .c file: #ifdef option1 #include "ISR-1.inc" #endif #ifdef option2 #include "ISR-2.inc" #endif In my case, the .inc files contain the vector label, and the entire ISR.
_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list