diff options
| -rw-r--r-- | os/hal/include/usbh/dev/hub.h | 6 | ||||
| -rw-r--r-- | os/hal/src/hal_usbh.c | 2 | ||||
| -rw-r--r-- | os/hal/src/usbh/hal_usbh_hub.c | 2 | 
3 files changed, 5 insertions, 5 deletions
| diff --git a/os/hal/include/usbh/dev/hub.h b/os/hal/include/usbh/dev/hub.h index 4a35aae..924ebec 100644 --- a/os/hal/include/usbh/dev/hub.h +++ b/os/hal/include/usbh/dev/hub.h @@ -60,7 +60,7 @@ usbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub,  static inline usbh_urbstatus_t usbhhubClearFeaturePort(usbh_port_t *port, uint8_t feature) {
  	return usbhhubControlRequest(port->device.host, port->hub,
 -				USBH_REQTYPE_OUT | USBH_REQTYPE_CLASS | USBH_REQTYPE_OTHER,
 +				USBH_REQTYPE_DIR_OUT | USBH_REQTYPE_TYPE_CLASS | USBH_REQTYPE_RECIP_OTHER,
  				USBH_REQ_CLEAR_FEATURE,
  				feature,
  				port->number,
 @@ -70,7 +70,7 @@ static inline usbh_urbstatus_t usbhhubClearFeaturePort(usbh_port_t *port, uint8_  static inline usbh_urbstatus_t usbhhubClearFeatureHub(USBHDriver *host, USBHHubDriver *hub, uint8_t feature) {
  	return usbhhubControlRequest(host, hub,
 -				USBH_REQTYPE_OUT | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,
 +				USBH_REQTYPE_DIR_OUT | USBH_REQTYPE_TYPE_CLASS | USBH_REQTYPE_RECIP_DEVICE,
  				USBH_REQ_CLEAR_FEATURE,
  				feature,
  				0,
 @@ -80,7 +80,7 @@ static inline usbh_urbstatus_t usbhhubClearFeatureHub(USBHDriver *host, USBHHubD  static inline usbh_urbstatus_t usbhhubSetFeaturePort(usbh_port_t *port, uint8_t feature) {
  	return usbhhubControlRequest(port->device.host, port->hub,
 -				USBH_REQTYPE_OUT | USBH_REQTYPE_CLASS | USBH_REQTYPE_OTHER,
 +				USBH_REQTYPE_DIR_OUT | USBH_REQTYPE_TYPE_CLASS | USBH_REQTYPE_RECIP_OTHER,
  				USBH_REQ_SET_FEATURE,
  				feature,
  				port->number,
 diff --git a/os/hal/src/hal_usbh.c b/os/hal/src/hal_usbh.c index 538f36e..457abba 100644 --- a/os/hal/src/hal_usbh.c +++ b/os/hal/src/hal_usbh.c @@ -1119,7 +1119,7 @@ static void _hub_update_status(USBHDriver *host, USBHHubDriver *hub) {  	uint32_t stat;  	if (usbhhubControlRequest(host,  			hub, -			USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, +			USBH_REQTYPE_DIR_IN | USBH_REQTYPE_TYPE_CLASS | USBH_REQTYPE_RECIP_DEVICE,  			USBH_REQ_GET_STATUS,  			0,  			0, diff --git a/os/hal/src/usbh/hal_usbh_hub.c b/os/hal/src/usbh/hal_usbh_hub.c index 4b5af58..3a84175 100644 --- a/os/hal/src/usbh/hal_usbh_hub.c +++ b/os/hal/src/usbh/hal_usbh_hub.c @@ -198,7 +198,7 @@ alloc_ok:  	/* read Hub descriptor */  	uinfo("Read Hub descriptor");  	if (usbhhubControlRequest(dev->host, hubdp, -			USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, +			USBH_REQTYPE_DIR_IN | USBH_REQTYPE_TYPE_CLASS | USBH_REQTYPE_RECIP_DEVICE,  			USBH_REQ_GET_DESCRIPTOR,  			(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),  			(uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) { | 
