summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-02-13 22:29:14 +0700
committerhathach <[email protected]>2026-02-13 22:29:14 +0700
commitf0b44ec6154237a4bd65a5a9d8f8bf944669af64 (patch)
treea19e77e93d1e9b690dd0ac27cf1f22682f142c86 /src/device
parent8f14cf4bfa061690084c7c32b3f8b70301f5e0ff (diff)
use CFG_TUD_CONFIGURE_DWC2_DEFAULT to make it easier to add more value
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index eaf07b81e..825fdba90 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -44,7 +44,9 @@ 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 }
+ #ifndef CFG_TUD_CONFIGURE_DWC2_DEFAULT
+ #define CFG_TUD_CONFIGURE_DWC2_DEFAULT {.bm_double_buffered = 0, .vbus_sensing = CFG_TUD_VBUS_DETECT_HW}
+ #endif
typedef union {
tud_configure_dwc2_t dwc2;