diff options
| author | Zixun LI <[email protected]> | 2025-11-27 17:17:03 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-11-27 22:38:30 +0100 |
| commit | 07ff25eb1e9871082b92161296725c5d312d3558 (patch) | |
| tree | ab751994dde3b9aeb6b08625ac8f5c28d7dcf9ca /src/host | |
| parent | 8914f402e5cdf372ade2ed1f4053ce14feffbeda (diff) | |
Add max nak config
Signed-off-by: Zixun LI <[email protected]>
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h index 4b6747848..697c911ff 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -95,18 +95,23 @@ enum { TUH_CFGID_INVALID = 0, TUH_CFGID_RPI_PIO_USB_CONFIGURATION = 100, // cfg_param: pio_usb_configuration_t TUH_CFGID_MAX3421 = 200, + TUH_CFGID_FSDEV = 300, }; typedef struct { - uint8_t max_nak; // max NAK per endpoint per frame to save CPU/SPI bus usage + uint8_t max_nak; // max NAK per endpoint per frame to save CPU/SPI bus usage (0=unlimited) uint8_t cpuctl; // R16: CPU Control Register uint8_t pinctl; // R17: Pin Control Register. FDUPSPI bit is ignored } tuh_configure_max3421_t; +typedef struct { + uint8_t max_nak; // max NAK per endpoint per frame to save CPU usage (0=unlimited) +} tuh_configure_fsdev_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_param_t; //--------------------------------------------------------------------+ |
