mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
add rhport to hcd_init()
This commit is contained in:
parent
8a2e4c79fd
commit
1e07fc024c
@ -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)
|
||||
|
@ -98,7 +98,7 @@ enum {
|
||||
//--------------------------------------------------------------------+
|
||||
// Controller & Port API
|
||||
//--------------------------------------------------------------------+
|
||||
bool hcd_init(void);
|
||||
bool hcd_init(uint8_t rhport);
|
||||
void hcd_int_handler(uint8_t rhport);
|
||||
void hcd_int_enable (uint8_t rhport);
|
||||
void hcd_int_disable(uint8_t rhport);
|
||||
|
@ -197,7 +197,7 @@ bool tuh_init(void)
|
||||
usbh_class_drivers[drv_id].init();
|
||||
}
|
||||
|
||||
TU_ASSERT(hcd_init());
|
||||
TU_ASSERT(hcd_init(TUH_OPT_RHPORT));
|
||||
hcd_int_enable(TUH_OPT_RHPORT);
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user