aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/usb/usb.h
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-12-14 01:39:20 -0500
committerAJM <poslathian@poslathian.(none)>2010-12-14 01:39:20 -0500
commit84fd2532a7f23d20354ff590790b3f892cb7e7d7 (patch)
tree610c5448997cb07bacb53261484d43ce9ef01c3d /libmaple/usb/usb.h
parent40573207a2a5d17110c58a8d4051a4f2804b960a (diff)
downloadlibrambutan-84fd2532a7f23d20354ff590790b3f892cb7e7d7.tar.gz
librambutan-84fd2532a7f23d20354ff590790b3f892cb7e7d7.zip
added a usbBlockingSendByte(char ch)
this new function will only return AFTER the usb interrupt has been serviced and the byte is sent. Bytes should NOT fall on the floor ever with this function. (but they still do? pyserials problem?)
Diffstat (limited to 'libmaple/usb/usb.h')
-rw-r--r--libmaple/usb/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/usb/usb.h b/libmaple/usb/usb.h
index 5bc31e1..0ed02e5 100644
--- a/libmaple/usb/usb.h
+++ b/libmaple/usb/usb.h
@@ -73,6 +73,7 @@ void usb_lpIRQHandler(void);
void usbWaitReset(void);
/* blocking functions for send/receive */
+void usbBlockingSendByte(char ch);
uint32 usbSendBytes(uint8* sendBuf,uint32 len);
uint32 usbBytesAvailable(void);
uint32 usbReceiveBytes(uint8* recvBuf, uint32 len);