diff options
| author | Ha Thach <[email protected]> | 2020-08-04 14:11:32 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-04 14:11:32 +0700 |
| commit | 026a1e7ac86e73e5596d819eacc7dbff97f6d322 (patch) | |
| tree | 205d40e36b6305cbcbdfb13a0092980481ec8318 /src/portable/ti | |
| parent | 72464faca4e00ff932348043e05286d5a5d586b9 (diff) | |
| parent | acde49ccc97466f603dc7face7ab70ea10d38ee3 (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/ti')
| -rw-r--r-- | src/portable/ti/msp430x5xx/dcd_msp430x5xx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c index 93ba99543..ad71e1168 100644 --- a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c +++ b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c @@ -133,6 +133,9 @@ void dcd_init (uint8_t rhport) // Enable reset and wait for it before continuing. USBIE |= RSTRIE; + // Enable pullup. + USBCNF |= PUR_EN; + USBKEYPID = 0; } |
