aboutsummaryrefslogtreecommitdiffstats
path: root/usbdrv/asmcommon.inc
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2008-10-21 16:13:07 +0000
committerChristian Starkjohann <cs+github@obdev.at>2008-10-21 16:13:07 +0000
commitd12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234 (patch)
treee4364b16786037864b3f778ab687fd1d75953ebb /usbdrv/asmcommon.inc
parentae840220bb1cc546e81992ea3e6e22f7b2a543d2 (diff)
downloadv-usb-d12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234.tar.gz
v-usb-d12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234.tar.bz2
v-usb-d12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234.zip
- implemented option USB_CFG_SUPPRESS_INTR_CODE
Diffstat (limited to 'usbdrv/asmcommon.inc')
-rw-r--r--usbdrv/asmcommon.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/usbdrv/asmcommon.inc b/usbdrv/asmcommon.inc
index febfeb0..22ee3b0 100644
--- a/usbdrv/asmcommon.inc
+++ b/usbdrv/asmcommon.inc
@@ -153,6 +153,7 @@ handleIn:
; RAM this way and avoid potential problems with endless retries. The rest of
; the driver assumes error-free transfers anyway.
+#if !USB_CFG_SUPPRESS_INTR_CODE
#if USB_CFG_HAVE_INTRIN_ENDPOINT /* placed here due to relative jump range */
handleIn1: ;[38]
#if USB_CFG_HAVE_INTRIN_ENDPOINT3
@@ -179,3 +180,8 @@ handleIn3:
ldi YH, hi8(usbTxBuf3) ;[48]
rjmp usbSendAndReti ;[49] 51 + 12 = 63 until SOP
#endif
+#else /* USB_CFG_SUPPRESS_INTR_CODE */
+handleIn1:
+ ldi cnt, USBPID_NAK
+ rjmp sendCntAndReti
+#endif /* USB_CFG_SUPPRESS_INTR_CODE */