diff options
| author | AJM <poslathian@poslathian.(none)> | 2010-12-13 23:46:36 -0500 | 
|---|---|---|
| committer | AJM <poslathian@poslathian.(none)> | 2010-12-13 23:46:36 -0500 | 
| commit | 125cbc814bc032ba217e8c10e0ceb43981126ce3 (patch) | |
| tree | 612f65862fefb39ef8da94b865e84564bf5e503c /libmaple/usb/usb.c | |
| parent | ef3fcf8b3ed17540a4a931525afee8168852c48c (diff) | |
| download | librambutan-125cbc814bc032ba217e8c10e0ceb43981126ce3.tar.gz librambutan-125cbc814bc032ba217e8c10e0ceb43981126ce3.zip  | |
enlarged rx buffer and nak when less than 64 bytes is left in packet buf
Diffstat (limited to 'libmaple/usb/usb.c')
| -rw-r--r-- | libmaple/usb/usb.c | 4 | 
1 files changed, 2 insertions, 2 deletions
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;    }  | 
