Skip to content

Commit 2f6f9da

Browse files
committed
fix usbhost issue by #4378
1 parent 0e30fac commit 2f6f9da

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bsp/nuvoton/libraries/m2354/rtt_port/drv_usbhost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ int nu_usbh_register(void)
866866
RT_ASSERT(res == RT_EOK);
867867

868868
/*initialize the usb host function */
869-
res = rt_usb_host_init();
869+
res = rt_usb_host_init("usbh");
870870
RT_ASSERT(res == RT_EOK);
871871

872872
#if defined(RT_USING_PM)

bsp/nuvoton/libraries/n9h30/rtt_port/drv_usbhost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ int nu_usbh_register(void)
942942

943943

944944
/*initialize the usb host function */
945-
res = rt_usb_host_init();
945+
res = rt_usb_host_init("usbh");
946946
RT_ASSERT(res == RT_EOK);
947947

948948
#if defined(RT_USING_PM)

components/drivers/usb/usbhost/core/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ ucd_t rt_usbh_class_driver_find(int class_code, int subclass_code)
144144

145145
/* not found */
146146
return RT_NULL;
147-
}
147+
}

components/drivers/usb/usbhost/core/hub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,4 +718,4 @@ void rt_usbh_hub_init(uhcd_t hcd)
718718
/* startup usb host thread */
719719
rt_thread_startup(thread);
720720
}
721-
}
721+
}

components/drivers/usb/usbhost/core/usbhost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ rt_err_t rt_usb_host_init(const char *name)
6565
rt_device_init(uhc);
6666

6767
return RT_EOK;
68-
}
68+
}

0 commit comments

Comments
 (0)