diff options
| author | hathach <[email protected]> | 2022-03-19 00:43:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-19 00:43:31 +0700 |
| commit | 4795cca04ac60d58fbc78d554cd7af7039cd310a (patch) | |
| tree | cd2ebf85439a5ab1634a3a72392ed8da8b8db119 /src/host/hub.c | |
| parent | ba1185bf28331da718cca38e6598361889fce54d (diff) | |
add parse config descriptor to example
move usbh_edpt_open() to public API, remove rhport from its signature
Diffstat (limited to 'src/host/hub.c')
| -rw-r--r-- | src/host/hub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/hub.c b/src/host/hub.c index da4f6fe3a..b4d369aca 100644 --- a/src/host/hub.c +++ b/src/host/hub.c @@ -183,6 +183,8 @@ void hub_init(void) bool hub_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *itf_desc, uint16_t max_len) { + (void) rhport; + TU_VERIFY(TUSB_CLASS_HUB == itf_desc->bInterfaceClass && 0 == itf_desc->bInterfaceSubClass); @@ -199,7 +201,7 @@ bool hub_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *itf TU_ASSERT(TUSB_DESC_ENDPOINT == desc_ep->bDescriptorType && TUSB_XFER_INTERRUPT == desc_ep->bmAttributes.xfer, 0); - TU_ASSERT(usbh_edpt_open(rhport, dev_addr, desc_ep)); + TU_ASSERT(usbh_edpt_open(dev_addr, desc_ep)); hub_interface_t* p_hub = get_itf(dev_addr); |
