summaryrefslogtreecommitdiff
path: root/src/portable/nxp/khci
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-10-11 17:53:39 +0700
committerhathach <[email protected]>2024-10-11 17:53:39 +0700
commit1587d48e89cbaa8d0d1c870809bc40c3c8d1056f (patch)
treea01565a3ddfef6225497dc4e83ffc0fa93830ce2 /src/portable/nxp/khci
parentf3b7d7515e9cae834013dc9ee3a67d87111090eb (diff)
hcd_init() take init struct
Diffstat (limited to 'src/portable/nxp/khci')
-rw-r--r--src/portable/nxp/khci/hcd_khci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/portable/nxp/khci/hcd_khci.c b/src/portable/nxp/khci/hcd_khci.c
index 57684b259..e9c00b8f9 100644
--- a/src/portable/nxp/khci/hcd_khci.c
+++ b/src/portable/nxp/khci/hcd_khci.c
@@ -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);