1
0
Эх сурвалжийг харах

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

* add arg for rt_usb_host_init call
LeeChunHei 3 жил өмнө
parent
commit
c06b57670f

+ 1 - 1
bsp/nuvoton/libraries/m480/rtt_port/drv_usbhost.c

@@ -880,7 +880,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)

+ 1 - 1
bsp/nuvoton/libraries/nuc980/rtt_port/drv_usbhost.c

@@ -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)

+ 1 - 1
bsp/rx/applications/application.c

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

+ 1 - 1
bsp/stm32/libraries/HAL_Drivers/drv_usbh.c

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