summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam D. Jones <[email protected]>2019-09-24 04:06:34 -0400
committerWilliam D. Jones <[email protected]>2019-09-24 04:06:34 -0400
commit01b4115b0b26a9fb5c706daf320c85556d16f920 (patch)
tree989f1b1399d4e5a53967c6319770116870a5474d
parent550e8215f3ee60c13548e623925ca870023b20e4 (diff)
dcd_msp430x5xx: Fix Setup packet delay by actually enabling
corresponding interrupt.
-rw-r--r--src/portable/ti/msp430x5xx/dcd_msp430x5xx.c3
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 4b35cd984..fe78218df 100644
--- a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
+++ b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
@@ -61,6 +61,9 @@ static void bus_reset(void)
// Dedicated buffers in hardware for SETUP and EP0, no setup needed.
USBOEPCNT_0 &= ~NAK;
USBIEPCNT_0 &= ~NAK;
+
+ // Now safe to respond to SETUP packets.
+ USBIE |= SETUPIE;
}