summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-11-10 21:45:44 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-11-10 21:45:44 +0000
commitae3ff343f09da4e2f1b63dd4dde8d283848becd0 (patch)
tree5a8926d8f6d9a21218814e2582f899998cd6ba1c
parent016c7033f4b73e35ebd66ada66093f3c5fe9fbff (diff)
Add workaround for missing usb_interrupt_read()
-rw-r--r--tools/csr_usb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/csr_usb.c b/tools/csr_usb.c
index 2c29251f..3e2a4144 100644
--- a/tools/csr_usb.c
+++ b/tools/csr_usb.c
@@ -40,6 +40,13 @@ static inline struct usb_bus *usb_get_busses(void)
}
#endif
+#ifdef NEED_USB_INTERRUPT_READ
+static inline int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout)
+{
+ return usb_bulk_read(dev, ep, bytes, size, timeout);
+}
+#endif
+
#ifndef USB_DIR_OUT
#define USB_DIR_OUT 0x00
#endif