summaryrefslogtreecommitdiffstats
path: root/firmware/usbdrv/asmcommon.inc
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2014-01-06 01:59:31 +0100
committercpldcpu <cpldcpu@gmail.com>2014-01-06 01:59:31 +0100
commitf66fdcdbe80fdfa92dd9356a205d923c5c655d13 (patch)
treeffd9689249192225be1915dd4ed9c34db7c302c6 /firmware/usbdrv/asmcommon.inc
parent53093ecb3618d6256508cb20d76ef060623e6821 (diff)
downloadmicronucleus-f66fdcdbe80fdfa92dd9356a205d923c5c655d13.tar.gz
micronucleus-f66fdcdbe80fdfa92dd9356a205d923c5c655d13.tar.bz2
micronucleus-f66fdcdbe80fdfa92dd9356a205d923c5c655d13.zip
firmware: single buffer usb
1578 bytes, yay..
Diffstat (limited to 'firmware/usbdrv/asmcommon.inc')
-rw-r--r--firmware/usbdrv/asmcommon.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/usbdrv/asmcommon.inc b/firmware/usbdrv/asmcommon.inc
index 2551bab..19fb3d3 100644
--- a/firmware/usbdrv/asmcommon.inc
+++ b/firmware/usbdrv/asmcommon.inc
@@ -156,10 +156,13 @@ handleData:
#endif
sts usbRxLen, cnt ;[28] store received data, swap buffers
sts usbRxToken, shift ;[30]
- lds x2, usbInputBufOffset;[32] swap buffers
- ldi cnt, USB_BUFSIZE ;[34]
- sub cnt, x2 ;[35]
- sts usbInputBufOffset, cnt;[36] buffers now swapped
+
+; Micronculeus v2 needs no double buffer due to in-order processing
+; TB 2014-01-04
+; lds x2, usbInputBufOffset;[32] swap buffers
+; ldi cnt, USB_BUFSIZE ;[34]
+; sub cnt, x2 ;[35]
+; sts usbInputBufOffset, cnt;[36] buffers now swapped
rjmp sendAckAndReti ;[38] 40 + 17 = 57 until SOP
handleIn: