]> git.zarvox.org Git - usbsnes.git/commitdiff
Fix a bug where the USB interrupt doesn't make it to the interrupt vector table.
authorDrew Fisher <drew.m.fisher@gmail.com>
Wed, 24 Feb 2010 17:37:43 +0000 (12:37 -0500)
committerDrew Fisher <drew.m.fisher@gmail.com>
Wed, 24 Feb 2010 17:37:43 +0000 (12:37 -0500)
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

index efa2b929c131b95cf644043b978009f24936d486..3363dc9d5aecf0fe4df4dc702d78da12a83ae092 100644 (file)
@@ -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__ */