Skip to content

Commit

Permalink
Fix LPC55 HIC missing out on a setup packet
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmimi authored and mathias-arm committed Feb 25, 2024
1 parent 543ac90 commit dbb10a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/hic_hal/nxp/lpc55xx/usbd_LPC55xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ uint32_t USBD_ReadEP(uint32_t EPNum, uint8_t *pData, uint32_t size)
s_read_ctrl_out_next = 0;
if (USBHSD->DEVCMDSTAT & USBHSD_DEVCMDSTAT_SETUP_MASK) {
// A setup packet is still pending so trigger another interrupt
USBHSD->INTSETSTAT |= USBHSD_INTSETSTAT_EP_SET_INT(0);
USBHSD->INTSETSTAT |= USBHSD_INTSETSTAT_EP_SET_INT(1 << 0);
}
}
}
Expand Down

0 comments on commit dbb10a2

Please sign in to comment.