diff options
| author | Mark Harris <mharris@technobear.com> | 2017-09-14 14:41:28 +0200 | 
|---|---|---|
| committer | Mark Harris <mharris@technobear.com> | 2017-09-14 14:41:28 +0200 | 
| commit | f5f3c8ffdb666682868c0280995f2a5fb8c62aa3 (patch) | |
| tree | 9688e52e9f1f9cdcd7e1ad760479f8008e06ecf5 /os/hal/src | |
| parent | d2269527b744e0ab249d38663436613158b0a282 (diff) | |
| download | ChibiOS-Contrib-f5f3c8ffdb666682868c0280995f2a5fb8c62aa3.tar.gz ChibiOS-Contrib-f5f3c8ffdb666682868c0280995f2a5fb8c62aa3.tar.bz2 ChibiOS-Contrib-f5f3c8ffdb666682868c0280995f2a5fb8c62aa3.zip | |
usbh:_ptxfe_int, use HPTXSTS, introduce usbhSyncrhonousTransfer
Diffstat (limited to 'os/hal/src')
| -rw-r--r-- | os/hal/src/hal_usbh.c | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/os/hal/src/hal_usbh.c b/os/hal/src/hal_usbh.c index 10c5c03..a7ceedf 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 usbhSyncrhonousTransfer(ep,data,len,actual_len,timeout); +} + +usbh_urbstatus_t usbhSyncrhonousTransfer(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); | 
