Skip to content

Commit

Permalink
Fix LPC55 HIC missing out on a setup pcaket
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmimi committed Feb 20, 2024
1 parent 543ac90 commit 0f42123
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 0f42123

Please sign in to comment.