Skip to content

Commit dbb10a2

Browse files
elfmimimathias-arm
authored andcommitted
Fix LPC55 HIC missing out on a setup packet
1 parent 543ac90 commit dbb10a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/hic_hal/nxp/lpc55xx/usbd_LPC55xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ uint32_t USBD_ReadEP(uint32_t EPNum, uint8_t *pData, uint32_t size)
640640
s_read_ctrl_out_next = 0;
641641
if (USBHSD->DEVCMDSTAT & USBHSD_DEVCMDSTAT_SETUP_MASK) {
642642
// A setup packet is still pending so trigger another interrupt
643-
USBHSD->INTSETSTAT |= USBHSD_INTSETSTAT_EP_SET_INT(0);
643+
USBHSD->INTSETSTAT |= USBHSD_INTSETSTAT_EP_SET_INT(1 << 0);
644644
}
645645
}
646646
}

0 commit comments

Comments
 (0)