summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-08 13:16:08 +0700
committerhathach <[email protected]>2024-04-08 13:16:08 +0700
commitcbbfbbb57ea8b4ea97ce4f2e2d157da9c25019fe (patch)
tree163091ac4b1dbef5a5d76e874f1350022602a01b /src/host
parentaf1346c74878aaec8549483ae6371614f550c863 (diff)
add cpuctl and pinctl to tuh_configure() option for max3421
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 57362c778..359684169 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -80,12 +80,16 @@ enum {
TUH_CFGID_MAX3421 = 200,
};
+typedef struct {
+ uint8_t max_nak; // max NAK per endpoint per frame
+ uint8_t cpuctl; // R16: CPU Control Register
+ uint8_t pinctl; // R17: Pin Control Register. FDUPSPI bit is ignored
+} tuh_configure_max3421_t;
+
typedef union {
// For TUH_CFGID_RPI_PIO_USB_CONFIGURATION use pio_usb_configuration_t
- struct {
- uint8_t max_nak;
- } max3421;
+ tuh_configure_max3421_t max3421;
} tuh_configure_param_t;
//--------------------------------------------------------------------+