From: Drew Fisher <drew.m.fisher@gmail.com>
Date: Wed, 24 Feb 2010 17:37:43 +0000 (-0500)
Subject: Fix a bug where the USB interrupt doesn't make it to the interrupt vector table.
X-Git-Url: http://git.zarvox.org/shortlog/static/style.css?a=commitdiff_plain;h=2a1ffd05809ec37c0d85241bdf685d046ed77caf;p=usbsnes.git

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.
---

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__ */