Skip to content

Commit c06b576

Browse files
authored
修改bsp的usb host 驅動 (#4379)
* add arg for rt_usb_host_init call
1 parent e6cc936 commit c06b576

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

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

882882
/*initialize the usb host function */
883-
res = rt_usb_host_init();
883+
res = rt_usb_host_init("usbh");
884884
RT_ASSERT(res == RT_EOK);
885885

886886
#if defined(RT_USING_PM)

bsp/nuvoton/libraries/nuc980/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)

bsp/rx/applications/application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void rt_init_thread_entry(void* parameter)
119119
#endif
120120

121121
#ifdef RT_USING_USB_HOST
122-
rt_usb_host_init();
122+
rt_usb_host_init("usbh");
123123
#endif
124124

125125
#ifdef RT_USING_FINSH

bsp/stm32/libraries/HAL_Drivers/drv_usbh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ int stm_usbh_register(void)
247247
return -RT_ERROR;
248248
}
249249

250-
rt_usb_host_init();
250+
rt_usb_host_init("usbh");
251251

252252
return RT_EOK;
253253
}

0 commit comments

Comments
 (0)