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

@@ -405,7 +405,7 @@ bool tuh_rhport_init(const tusb_rhport_init_t* rh_init) {
// Init host controller
_usbh_controller = rh_init->rhport;
TU_ASSERT(hcd_init(rh_init->rhport));
TU_ASSERT(hcd_init(rh_init));
hcd_int_enable(rh_init->rhport);
return true;