summaryrefslogtreecommitdiff
path: root/src/portable/st/synopsys
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-08-01 20:14:58 +0700
committerhathach <[email protected]>2020-08-01 20:14:58 +0700
commitacde49ccc97466f603dc7face7ab70ea10d38ee3 (patch)
tree39faa19822bd0a3fee11bf3d6e05aa3157f70fe4 /src/portable/st/synopsys
parent310797a58073dbd6d56eb4c85afd354949ce6630 (diff)
enable pull-up in dcd_init() instead of usbd
Diffstat (limited to 'src/portable/st/synopsys')
-rw-r--r--src/portable/st/synopsys/dcd_synopsys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c
index f4430f582..a284c0384 100644
--- a/src/portable/st/synopsys/dcd_synopsys.c
+++ b/src/portable/st/synopsys/dcd_synopsys.c
@@ -453,6 +453,8 @@ void dcd_init (uint8_t rhport)
// Enable global interrupt
usb_otg->GAHBCFG |= USB_OTG_GAHBCFG_GINT;
+
+ dcd_connect(rhport);
}
void dcd_int_enable (uint8_t rhport)