summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-04-11 13:20:31 +0700
committerGitHub <[email protected]>2020-04-11 13:20:31 +0700
commit07809d03a728abff4c77f04fdf293eb29a0c109c (patch)
tree2d180c7228b34bd1845729a1231b78e6f433af16 /src/device/usbd.c
parent2ff3f765db7e62201d0491093111b0d649446046 (diff)
parent5bd9d14fc14d9130d7d879800bd46e4ca08e3d5f (diff)
Merge pull request #332 from pigrew/stm32fsdev-dcdconnect
stm32fsdev: Implement dcd_connect.
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 397a681ed..2adac429c 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -332,6 +332,7 @@ bool tud_init (void)
// Init device controller driver
dcd_init(TUD_OPT_RHPORT);
+ tud_connect();
dcd_int_enable(TUD_OPT_RHPORT);
return true;