[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Any way to friend an interrupt handler?
From: |
Rick Mann |
Subject: |
Re: [avr-chat] Any way to friend an interrupt handler? |
Date: |
Wed, 20 Feb 2013 00:12:28 -0800 |
On Feb 19, 2013, at 23:43 , Joerg Wunsch <address@hidden> 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