summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index 7d7604c81..eaf07b81e 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -44,6 +44,8 @@ typedef struct {
bool vbus_sensing; // Vbus pin is used for device connection detection, mandatory for tud_umount_cb()
} tud_configure_dwc2_t;
+#define TUD_CONFIGURE_DWC2_DEFAULT { .bm_double_buffered = 0, .vbus_sensing = CFG_TUD_VBUS_SENSE }
+
typedef union {
tud_configure_dwc2_t dwc2;
} tud_configure_param_t;