diff options
| author | hathach <[email protected]> | 2025-04-23 16:03:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-04-23 16:03:40 +0700 |
| commit | a2da575793a14fdfc5137a02843af0fd8f8b772a (patch) | |
| tree | ab9d028d20f8a709eb813d1538671b335ca1ddad /src/portable/mentor | |
| parent | 741cb3cf029e37682634eeb355c20420c0816c8d (diff) | |
rename and expose tuh_bus_info_get() to application
Diffstat (limited to 'src/portable/mentor')
| -rw-r--r-- | src/portable/mentor/musb/hcd_musb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/mentor/musb/hcd_musb.c b/src/portable/mentor/musb/hcd_musb.c index 97ef46152..dcc023e0b 100644 --- a/src/portable/mentor/musb/hcd_musb.c +++ b/src/portable/mentor/musb/hcd_musb.c @@ -36,6 +36,7 @@ _Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\""); #endif #include "host/hcd.h" +#include "host/usbh.h" #include "musb_type.h" @@ -696,7 +697,7 @@ bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet _hcd.pipe0.remaining = 0; tuh_bus_info_t bus_info; - hcd_bus_info_get(dev_addr, &bus_info); + tuh_bus_info_get(dev_addr, &bus_info); switch (bus_info.speed) { default: return false; case TUSB_SPEED_LOW: USB0->TYPE0 = USB_TYPE0_SPEED_LOW; break; @@ -745,7 +746,7 @@ bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const uint8_t pipe_type = 0; tuh_bus_info_t bus_info; - hcd_bus_info_get(dev_addr, &bus_info); + tuh_bus_info_get(dev_addr, &bus_info); switch (bus_info.speed) { default: return false; case TUSB_SPEED_LOW: pipe_type |= USB_TXTYPE1_SPEED_LOW; break; |
