From 125cbc814bc032ba217e8c10e0ceb43981126ce3 Mon Sep 17 00:00:00 2001 From: AJM Date: Mon, 13 Dec 2010 23:46:36 -0500 Subject: enlarged rx buffer and nak when less than 64 bytes is left in packet buf --- libmaple/usb/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmaple/usb/usb.c') diff --git a/libmaple/usb/usb.c b/libmaple/usb/usb.c index 2b99132..396579f 100644 --- a/libmaple/usb/usb.c +++ b/libmaple/usb/usb.c @@ -336,7 +336,7 @@ void usbWaitReset(void) { * * */ -uint32 usbSendBytes(uint8* sendBuf, uint16 len) { +uint32 usbSendBytes(uint8* sendBuf, uint32 len) { uint16 loaded = 0; @@ -380,7 +380,7 @@ uint32 usbBytesAvailable(void) { usb packet buffer) into recvBuf and deq's the fifo. will only copy the minimum of len or the available bytes. returns the number of bytes copied */ -uint32 usbReceiveBytes(uint8* recvBuf, uint8 len) { +uint32 usbReceiveBytes(uint8* recvBuf, uint32 len) { if (len > VCOM_RX_EPSIZE - maxNewBytes) { len = VCOM_RX_EPSIZE - maxNewBytes; } -- cgit v1.2.3