add rhport to hcd_init()

This commit is contained in:
hathach
2021-02-22 22:32:56 +07:00
parent 8a2e4c79fd
commit 1e07fc024c
3 changed files with 4 additions and 4 deletions

View File

@@ -105,10 +105,10 @@ static bool ehci_init (uint8_t rhport);
//--------------------------------------------------------------------+
// HCD API
//--------------------------------------------------------------------+
bool hcd_init(void)
bool hcd_init(uint8_t rhport)
{
tu_memclr(&ehci_data, sizeof(ehci_data_t));
return ehci_init(TUH_OPT_RHPORT);
return ehci_init(rhport);
}
uint32_t hcd_uframe_number(uint8_t rhport)