aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/usbh/dev/hub.h
diff options
context:
space:
mode:
authorDiego Ismirlian <dismirlian (at) google's mail.com>2017-06-06 10:21:00 -0300
committerDiego Ismirlian <dismirlian (at) google's mail.com>2017-06-06 10:21:00 -0300
commit9349f7400432ae5a999c524b89da8a835da59b08 (patch)
treecbfdc9866114d3169475724232bc34e260d8a22d /os/hal/include/usbh/dev/hub.h
parente1357dab69fed9b5eacb40ba18978729f5844566 (diff)
downloadChibiOS-Contrib-9349f7400432ae5a999c524b89da8a835da59b08.tar.gz
ChibiOS-Contrib-9349f7400432ae5a999c524b89da8a835da59b08.tar.bz2
ChibiOS-Contrib-9349f7400432ae5a999c524b89da8a835da59b08.zip
Clean up request type helpers
Diffstat (limited to 'os/hal/include/usbh/dev/hub.h')
-rw-r--r--os/hal/include/usbh/dev/hub.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/include/usbh/dev/hub.h b/os/hal/include/usbh/dev/hub.h
index dd4ec54..4a35aae 100644
--- a/os/hal/include/usbh/dev/hub.h
+++ b/os/hal/include/usbh/dev/hub.h
@@ -106,7 +106,7 @@ static inline usbh_urbstatus_t usbhhubControlRequest(USBHDriver *host,
static inline usbh_urbstatus_t usbhhubClearFeaturePort(usbh_port_t *port, uint8_t feature) {
return usbhhubControlRequest(port->device.host,
- 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,
@@ -116,7 +116,7 @@ static inline usbh_urbstatus_t usbhhubClearFeaturePort(usbh_port_t *port, uint8_
static inline usbh_urbstatus_t usbhhubClearFeatureHub(USBHDriver *host, uint8_t feature) {
return usbhhubControlRequest(host,
- 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,
@@ -126,7 +126,7 @@ static inline usbh_urbstatus_t usbhhubClearFeatureHub(USBHDriver *host, uint8_t
static inline usbh_urbstatus_t usbhhubSetFeaturePort(usbh_port_t *port, uint8_t feature) {
return usbhhubControlRequest(port->device.host,
- 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,