aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/usb/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/usb/usb.c')
-rw-r--r--libmaple/usb/usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmaple/usb/usb.c b/libmaple/usb/usb.c
index b34c4b6..617c1ee 100644
--- a/libmaple/usb/usb.c
+++ b/libmaple/usb/usb.c
@@ -337,7 +337,7 @@ void usbWaitReset(void) {
*/
void usbBlockingSendByte(char ch) {
while (countTx);
- UserToPMABufferCopy(&ch,VCOM_TX_ADDR,1);
+ UserToPMABufferCopy((uint8*)&ch,VCOM_TX_ADDR,1);
_SetEPTxCount(VCOM_TX_ENDP,1);
_SetEPTxValid(VCOM_TX_ENDP);
countTx = 1;
@@ -397,8 +397,6 @@ uint32 usbReceiveBytes(uint8* recvBuf, uint32 len) {
}
void usbSendHello(void) {
- char* myStr = "hello!";
-
uint8 bufin = 48 + recvBufIn;;
uint8 bufout = 48 + recvBufOut;
uint8 avail = 48 + usbBytesAvailable();