On Feb 19, 2013, at 23:43 , Joerg Wunsch <[email protected]> wrote:

> You have to explicitly declare the vector since you need a (forward)
> declaration before you can define it.  There's no avr-libc macro to
> declare an ISR only without defining it.  Manual declaration works:
> 
> #include <avr/io.h>
> #include <avr/interrupt.h>
> 
> extern "C" void TIMER1_OVF_vect(void) __attribute__((signal));

Thanks, Joerg. I tried using the whole thing the macro spits out,

    extern "C" void vector (void) __attribute__ ((signal,__INTR_ATTRS)) 
__VA_ARGS__;

But the compiler hated that. Not sure how it works when I define the function.

Anyway, I appreciate it!

-- 
Rick




_______________________________________________
AVR-chat mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to