aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
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/include
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/include')
-rw-r--r--os/hal/include/hal_usbh.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/hal/include/hal_usbh.h b/os/hal/include/hal_usbh.h
index 1ed6416..6a6be21 100644
--- a/os/hal/include/hal_usbh.h
+++ b/os/hal/include/hal_usbh.h
@@ -52,7 +52,9 @@
#define HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS FALSE
#endif
+#ifndef HAL_USBH_USE_IAD
#define HAL_USBH_USE_IAD HAL_USBH_USE_UVC
+#endif
#if (HAL_USE_USBH == TRUE) || defined(__DOXYGEN__)
@@ -299,6 +301,12 @@ extern "C" {
}
/* Synchronous API */
+ usbh_urbstatus_t usbhSynchronousTransfer(usbh_ep_t *ep,
+ void *data,
+ uint32_t len,
+ uint32_t *actual_len,
+ systime_t timeout);
+
usbh_urbstatus_t usbhBulkTransfer(usbh_ep_t *ep,
void *data,
uint32_t len,