fix usbhost issue by #4378
This commit is contained in:
parent
0e30fac069
commit
2f6f9da5e3
|
@ -866,7 +866,7 @@ int nu_usbh_register(void)
|
|||
RT_ASSERT(res == RT_EOK);
|
||||
|
||||
/*initialize the usb host function */
|
||||
res = rt_usb_host_init();
|
||||
res = rt_usb_host_init("usbh");
|
||||
RT_ASSERT(res == RT_EOK);
|
||||
|
||||
#if defined(RT_USING_PM)
|
||||
|
|
|
@ -942,7 +942,7 @@ int nu_usbh_register(void)
|
|||
|
||||
|
||||
/*initialize the usb host function */
|
||||
res = rt_usb_host_init();
|
||||
res = rt_usb_host_init("usbh");
|
||||
RT_ASSERT(res == RT_EOK);
|
||||
|
||||
#if defined(RT_USING_PM)
|
||||
|
|
|
@ -144,4 +144,4 @@ ucd_t rt_usbh_class_driver_find(int class_code, int subclass_code)
|
|||
|
||||
/* not found */
|
||||
return RT_NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -718,4 +718,4 @@ void rt_usbh_hub_init(uhcd_t hcd)
|
|||
/* startup usb host thread */
|
||||
rt_thread_startup(thread);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,4 +65,4 @@ rt_err_t rt_usb_host_init(const char *name)
|
|||
rt_device_init(uhc);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue