From af01b8ba7660adac2faf1ab126c641937b976040 Mon Sep 17 00:00:00 2001 From: Ein Terakawa Date: Tue, 20 Feb 2024 22:47:21 +0900 Subject: [PATCH] Fix LPC55 HIC missing out on a setup packet --- source/hic_hal/nxp/lpc55xx/usbd_LPC55xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/hic_hal/nxp/lpc55xx/usbd_LPC55xx.c b/source/hic_hal/nxp/lpc55xx/usbd_LPC55xx.c index 564306954c..ad60f67c8c 100644 --- a/source/hic_hal/nxp/lpc55xx/usbd_LPC55xx.c +++ b/source/hic_hal/nxp/lpc55xx/usbd_LPC55xx.c @@ -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); } } }