hcd_init() take init struct

This commit is contained in:
hathach
2024-10-11 17:53:39 +07:00
parent f3b7d7515e
commit 1587d48e89
11 changed files with 25 additions and 36 deletions

View File

@@ -368,10 +368,8 @@ static void process_bus_reset(uint8_t rhport)
/*------------------------------------------------------------------*/
/* Host API
*------------------------------------------------------------------*/
bool hcd_init(uint8_t rhport)
{
(void)rhport;
bool hcd_init(const tusb_rhport_init_t* rh_init) {
(void) rh_init;
KHCI->USBTRC0 |= USB_USBTRC0_USBRESET_MASK;
while (KHCI->USBTRC0 & USB_USBTRC0_USBRESET_MASK);