修改bsp的usb host 驅動 (#4379)

* add arg for rt_usb_host_init call
This commit is contained in:
LeeChunHei 2022-01-26 10:46:57 +08:00 committed by GitHub
parent e6cc9363c7
commit c06b57670f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -880,7 +880,7 @@ int nu_usbh_register(void)
RT_ASSERT(res == RT_EOK); RT_ASSERT(res == RT_EOK);
/*initialize the usb host function */ /*initialize the usb host function */
res = rt_usb_host_init(); res = rt_usb_host_init("usbh");
RT_ASSERT(res == RT_EOK); RT_ASSERT(res == RT_EOK);
#if defined(RT_USING_PM) #if defined(RT_USING_PM)

View File

@ -942,7 +942,7 @@ int nu_usbh_register(void)
/*initialize the usb host function */ /*initialize the usb host function */
res = rt_usb_host_init(); res = rt_usb_host_init("usbh");
RT_ASSERT(res == RT_EOK); RT_ASSERT(res == RT_EOK);
#if defined(RT_USING_PM) #if defined(RT_USING_PM)

View File

@ -119,7 +119,7 @@ void rt_init_thread_entry(void* parameter)
#endif #endif
#ifdef RT_USING_USB_HOST #ifdef RT_USING_USB_HOST
rt_usb_host_init(); rt_usb_host_init("usbh");
#endif #endif
#ifdef RT_USING_FINSH #ifdef RT_USING_FINSH

View File

@ -247,7 +247,7 @@ int stm_usbh_register(void)
return -RT_ERROR; return -RT_ERROR;
} }
rt_usb_host_init(); rt_usb_host_init("usbh");
return RT_EOK; return RT_EOK;
} }