aboutsummaryrefslogtreecommitdiffstats
path: root/usbdrv
diff options
context:
space:
mode:
Diffstat (limited to 'usbdrv')
-rw-r--r--usbdrv/usbdrvasm.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/usbdrv/usbdrvasm.S b/usbdrv/usbdrvasm.S
index f5e83c3..c6ac53e 100644
--- a/usbdrv/usbdrvasm.S
+++ b/usbdrv/usbdrvasm.S
@@ -57,7 +57,11 @@ the file appropriate for the given clock rate.
#else /* __IAR_SYSTEMS_ASM__ */
# ifndef USB_INTR_VECTOR /* default to hardware interrupt INT0 */
-# define USB_INTR_VECTOR SIG_INTERRUPT0
+# ifdef INT0_vect
+# define USB_INTR_VECTOR INT0_vect // this is the "new" define for the vector
+# else
+# define USB_INTR_VECTOR SIG_INTERRUPT0 // this is the "old" vector
+# endif
# endif
.text
.global USB_INTR_VECTOR