diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-11-10 21:45:44 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-11-10 21:45:44 +0000 |
commit | ae3ff343f09da4e2f1b63dd4dde8d283848becd0 (patch) | |
tree | 5a8926d8f6d9a21218814e2582f899998cd6ba1c /tools | |
parent | 016c7033f4b73e35ebd66ada66093f3c5fe9fbff (diff) |
Add workaround for missing usb_interrupt_read()
Diffstat (limited to 'tools')
-rw-r--r-- | tools/csr_usb.c | 7 |
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 |