dcd_msp430x5xx: Fix clear stall logic.
This commit is contained in:
parent
529efcc0d2
commit
ea0e799df6
|
@ -337,11 +337,11 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
|
||||||
{
|
{
|
||||||
if(dir == TUSB_DIR_OUT)
|
if(dir == TUSB_DIR_OUT)
|
||||||
{
|
{
|
||||||
USBOEPCNT_0 &= ~NAK;
|
USBOEPCNT_0 &= ~STALL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
USBIEPCNT_0 &= ~NAK;
|
USBIEPCNT_0 &= ~STALL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue