From 2a1ffd05809ec37c0d85241bdf685d046ed77caf Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Wed, 24 Feb 2010 12:37:43 -0500 Subject: [PATCH] Fix a bug where the USB interrupt doesn't make it to the interrupt vector table. Somehow, either due to version differences between v-usb or avr-gcc/avr-libc, SIG_INTERRUPT0 was not getting linked to the interrupt vector table where it belonged. Naming the routine INT0_vect seems to fix the problem. --- usbconfig.h | 1 + 1 file changed, 1 insertion(+) diff --git a/usbconfig.h b/usbconfig.h index efa2b92..3363dc9 100644 --- a/usbconfig.h +++ b/usbconfig.h @@ -370,5 +370,6 @@ section at the end of this file). /* #define USB_INTR_PENDING GIFR */ /* #define USB_INTR_PENDING_BIT INTF0 */ /* #define USB_INTR_VECTOR SIG_INTERRUPT0 */ +#define USB_INTR_VECTOR INT0_vect #endif /* __usbconfig_h_included__ */ -- 2.39.2