aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal_usbh.c
diff options
context:
space:
mode:
authordismirlian <dismirlian@gmail.com>2017-09-16 11:28:09 -0300
committerGitHub <noreply@github.com>2017-09-16 11:28:09 -0300
commit5cea7f11ecadf4c530a2f722eb62ae6d1b5a1506 (patch)
tree9e088e13f4ed3d5fbdde5f3170848403e3c2e10a /os/hal/src/hal_usbh.c
parentc0205baf7d49b76e512dbae2537c062ac8efefc1 (diff)
parent741459ac27f9efb158ff28860c5d8e9affb87b68 (diff)
downloadChibiOS-Contrib-5cea7f11ecadf4c530a2f722eb62ae6d1b5a1506.tar.gz
ChibiOS-Contrib-5cea7f11ecadf4c530a2f722eb62ae6d1b5a1506.tar.bz2
ChibiOS-Contrib-5cea7f11ecadf4c530a2f722eb62ae6d1b5a1506.zip
Merge pull request #1 from axoloti/patch-1
USBH: allow enabling IAD without UVC USBH: implement ISO/INT out in STM32 LLD driver USBH: introduce usbhSynchronousTransfer helper function
Diffstat (limited to 'os/hal/src/hal_usbh.c')
-rw-r--r--os/hal/src/hal_usbh.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/os/hal/src/hal_usbh.c b/os/hal/src/hal_usbh.c
index 7dff98a..3949c68 100644
--- a/os/hal/src/hal_usbh.c
+++ b/os/hal/src/hal_usbh.c
@@ -335,10 +335,19 @@ usbh_urbstatus_t usbhBulkTransfer(usbh_ep_t *ep,
uint32_t len,
uint32_t *actual_len,
systime_t timeout) {
+ osalDbgAssert(ep->type == USBH_EPTYPE_BULK, "wrong ep");
+
+ return usbhSynchronousTransfer(ep,data,len,actual_len,timeout);
+}
+
+usbh_urbstatus_t usbhSynchronousTransfer(usbh_ep_t *ep,
+ void *data,
+ uint32_t len,
+ uint32_t *actual_len,
+ systime_t timeout) {
osalDbgCheck(ep != NULL);
osalDbgCheck((data != NULL) || (len == 0));
- osalDbgAssert(ep->type == USBH_EPTYPE_BULK, "wrong ep");
usbh_urb_t urb;
usbhURBObjectInit(&urb, ep, 0, 0, data, len);