diff options
| author | Cédric Berger <[email protected]> | 2026-02-22 21:39:14 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-22 21:39:14 +0100 |
| commit | 942479407e3bfb4e0800aeb428dc2a3d03d77ded (patch) | |
| tree | f6f65d88bfe1789f06c1d788994bb73f4871cc5f /src/host | |
| parent | 90d0514630d9b0f6d50881aabd82dcd613141f6b (diff) | |
| parent | dc072da5cc6a6b326a832f104c0a395d119ce35c (diff) | |
Merge branch 'hathach:master' into non-blocking-host-v2
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 6 | ||||
| -rw-r--r-- | src/host/usbh.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index ae337d867..f32d1336d 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -1961,6 +1961,12 @@ static uint8_t enum_get_new_address(bool is_hub) { } } +#if CFG_TUH_HUB + if ( is_hub ) { + TU_LOG1("All addresses are occupied, try to increase CFG_TUH_HUB value.\r\n"); + } +#endif // CFG_TUH_HUB + return 0; // invalid address } diff --git a/src/host/usbh.h b/src/host/usbh.h index d86efbcb2..143d36f8c 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -96,6 +96,7 @@ enum { TUH_CFGID_RPI_PIO_USB_CONFIGURATION = 100, // cfg_param: pio_usb_configuration_t TUH_CFGID_MAX3421 = 200, TUH_CFGID_FSDEV = 300, + TUH_CFGID_DWC2 = 400 }; typedef struct { @@ -108,10 +109,15 @@ typedef struct { uint8_t max_nak; // max NAK per endpoint per frame to save CPU usage (0=unlimited) } tuh_configure_fsdev_t; +typedef struct { + bool use_hs_phy; // Always use high-speed ULPI/UTMI phy even when working at full-speed +} tuh_configure_dwc2_t; + typedef union { // For TUH_CFGID_RPI_PIO_USB_CONFIGURATION use pio_usb_configuration_t tuh_configure_max3421_t max3421; tuh_configure_fsdev_t fsdev; + tuh_configure_dwc2_t dwc2; } tuh_configure_param_t; //--------------------------------------------------------------------+ |
