summaryrefslogtreecommitdiff
path: root/src/portable/microchip
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-08-04 14:11:32 +0700
committerGitHub <[email protected]>2020-08-04 14:11:32 +0700
commit026a1e7ac86e73e5596d819eacc7dbff97f6d322 (patch)
tree205d40e36b6305cbcbdfb13a0092980481ec8318 /src/portable/microchip
parent72464faca4e00ff932348043e05286d5a5d586b9 (diff)
parentacde49ccc97466f603dc7face7ab70ea10d38ee3 (diff)
Merge pull request #478 from hathach/move-dcdconnect-to-dcdinit
Move pull-up enabling to dcd_init() instead of usbd
Diffstat (limited to 'src/portable/microchip')
-rw-r--r--src/portable/microchip/samg/dcd_samg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c
index 4a8ed53f3..2b64df50b 100644
--- a/src/portable/microchip/samg/dcd_samg.c
+++ b/src/portable/microchip/samg/dcd_samg.c
@@ -154,9 +154,8 @@ static void bus_reset(void)
// Initialize controller to device mode
void dcd_init (uint8_t rhport)
{
- (void) rhport;
-
tu_memclr(_dcd_xfer, sizeof(_dcd_xfer));
+ dcd_connect(rhport);
}
// Enable device interrupt