summaryrefslogtreecommitdiff
path: root/src/portable/microchip
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/microchip
parent310797a58073dbd6d56eb4c85afd354949ce6630 (diff)
enable pull-up in 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