aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include
diff options
context:
space:
mode:
authorManuel Odendahl <wesen@ruinwesen.com>2013-01-17 17:41:02 +0100
committerManuel Odendahl <wesen@ruinwesen.com>2013-01-17 21:17:00 +0100
commitb1389732c350b2dcc4c158a149dcdc038a4b6537 (patch)
tree66b830cc39e08ae3d612f4906bef7e3a5b82c9b6 /libmaple/include
parent5e6c43a884b780e6f6b4bee5ded8e8d391b3bc94 (diff)
downloadlibrambutan-b1389732c350b2dcc4c158a149dcdc038a4b6537.tar.gz
librambutan-b1389732c350b2dcc4c158a149dcdc038a4b6537.zip
Handle sending 0 byte packets.
Added a flag to see if we are currently waiting on an interrupt to acknowledge the sending of the current IN packet. Added a method usb_cdcacm_is_transmitting() to check for that flag. Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r--libmaple/include/libmaple/usb_cdcacm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/include/libmaple/usb_cdcacm.h b/libmaple/include/libmaple/usb_cdcacm.h
index 5a2779e..5fe832c 100644
--- a/libmaple/include/libmaple/usb_cdcacm.h
+++ b/libmaple/include/libmaple/usb_cdcacm.h
@@ -127,6 +127,7 @@ uint32 usb_cdcacm_peek(uint8* buf, uint32 len);
uint32 usb_cdcacm_data_available(void); /* in RX buffer */
uint16 usb_cdcacm_get_pending(void);
+uint8 usb_cdcacm_is_transmitting(void);
uint8 usb_cdcacm_get_dtr(void);
uint8 usb_cdcacm_get_rts(void);