aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2010-01-15 18:33:47 +0000
committerChristian Starkjohann <cs+github@obdev.at>2010-01-15 18:33:47 +0000
commit010517f5b016b126c15a78ffb57a5157746b8a22 (patch)
tree850f6e695a1ab81f5fc11a5740549c35a183fc0f
parent86b076b925a6e2605ea03d05828a47794ad1ea89 (diff)
downloadv-usb-010517f5b016b126c15a78ffb57a5157746b8a22.tar.gz
v-usb-010517f5b016b126c15a78ffb57a5157746b8a22.tar.bz2
v-usb-010517f5b016b126c15a78ffb57a5157746b8a22.zip
- fixed define for interrupt vector (default vector used)
-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