diff options
Diffstat (limited to 'libmaple/usb')
-rw-r--r-- | libmaple/usb/usb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libmaple/usb/usb.c b/libmaple/usb/usb.c index 4e86ed0..d875785 100644 --- a/libmaple/usb/usb.c +++ b/libmaple/usb/usb.c @@ -332,9 +332,9 @@ void usbWaitReset(void) { * This function will quickly copy up to 64 bytes of data (out of an * arbitrarily large buffer) into the USB peripheral TX buffer and return the * number placed in that buffer. It is up to usercode to divide larger packets - * into 64-byte chunks to guarantee delivery. + * into 64-byte chunks to guarantee delivery. + * * - * */ void usbBlockingSendByte(char ch) { while (countTx); @@ -345,7 +345,8 @@ void usbBlockingSendByte(char ch) { while (countTx); } uint32 usbSendBytes(uint8* sendBuf, uint32 len) { - /* any checks on connection (via dtr/rts) done upstream in wirish or by user */ + /* any checks on connection (via dtr/rts) done upstream in wirish or + by user */ /* last xmit hasnt finished, abort */ if (countTx) { @@ -361,8 +362,8 @@ uint32 usbSendBytes(uint8* sendBuf, uint32 len) { if (len) { UserToPMABufferCopy(sendBuf,VCOM_TX_ADDR, len); _SetEPTxCount(VCOM_TX_ENDP, len); - _SetEPTxValid(VCOM_TX_ENDP); countTx += len; + _SetEPTxValid(VCOM_TX_ENDP); } return len; |