summaryrefslogtreecommitdiff
path: root/hw/bsp/stm32f2
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 /hw/bsp/stm32f2
parent8f14cf4bfa061690084c7c32b3f8b70301f5e0ff (diff)
use CFG_TUD_CONFIGURE_DWC2_DEFAULT to make it easier to add more value
Diffstat (limited to 'hw/bsp/stm32f2')
-rw-r--r--hw/bsp/stm32f2/family.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/bsp/stm32f2/family.c b/hw/bsp/stm32f2/family.c
index f863a59f0..f95128040 100644
--- a/hw/bsp/stm32f2/family.c
+++ b/hw/bsp/stm32f2/family.c
@@ -106,10 +106,8 @@ void board_init(void) {
#if CFG_TUD_ENABLED
// Enable VBUS sense (B device) via pin PA9
- tud_configure_dwc2_t cfg = {
- .bm_double_buffered = 0,
- .vbus_sensing = true
- };
+ tud_configure_dwc2_t cfg = CFG_TUD_CONFIGURE_DWC2_DEFAULT;
+ cfg.vbus_sensing = true;
tud_configure(0, TUD_CFGID_DWC2, &cfg);
#endif
}