diff options
| author | LeeChunHei <[email protected]> | 2022-01-26 10:46:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-26 10:46:57 +0800 |
| commit | c06b57670ff3c51c0deb5fefff8b47dc23ca8e64 (patch) | |
| tree | 304753f7a8516cf2f7c9f61e77b29e194632ede3 | |
| parent | e6cc9363c7f11f7e58dc2dd3d09e7564dc80f273 (diff) | |
修改bsp的usb host 驅動 (#4379)
* add arg for rt_usb_host_init call
| -rw-r--r-- | bsp/nuvoton/libraries/m480/rtt_port/drv_usbhost.c | 2 | ||||
| -rw-r--r-- | bsp/nuvoton/libraries/nuc980/rtt_port/drv_usbhost.c | 2 | ||||
| -rw-r--r-- | bsp/rx/applications/application.c | 2 | ||||
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/drv_usbh.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bsp/nuvoton/libraries/m480/rtt_port/drv_usbhost.c b/bsp/nuvoton/libraries/m480/rtt_port/drv_usbhost.c index c82a706c9b..c30bba60c8 100644 --- a/bsp/nuvoton/libraries/m480/rtt_port/drv_usbhost.c +++ b/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) diff --git a/bsp/nuvoton/libraries/nuc980/rtt_port/drv_usbhost.c b/bsp/nuvoton/libraries/nuc980/rtt_port/drv_usbhost.c index a5660ba328..85a1af96be 100644 --- a/bsp/nuvoton/libraries/nuc980/rtt_port/drv_usbhost.c +++ b/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) diff --git a/bsp/rx/applications/application.c b/bsp/rx/applications/application.c index 77bbbfd301..0d8043de91 100644 --- a/bsp/rx/applications/application.c +++ b/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 diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_usbh.c b/bsp/stm32/libraries/HAL_Drivers/drv_usbh.c index 9486e1a56d..1f169d2e6b 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_usbh.c +++ b/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; } |
