mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
Re-enable SETUP irq on EP0 stall.
This commit is contained in:
parent
9c26c0c01e
commit
5492d9148c
@ -728,6 +728,11 @@ void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr)
|
|||||||
(void) rhport;
|
(void) rhport;
|
||||||
uint8_t const epnum = tu_edpt_number(ep_addr);
|
uint8_t const epnum = tu_edpt_number(ep_addr);
|
||||||
USBHS->USBHS_DEVEPTIER[epnum] = USBHS_DEVEPTIER_CTRL_STALLRQS;
|
USBHS->USBHS_DEVEPTIER[epnum] = USBHS_DEVEPTIER_CTRL_STALLRQS;
|
||||||
|
// Re-enable SETUP interrupt
|
||||||
|
if (epnum == 0)
|
||||||
|
{
|
||||||
|
USBHS->USBHS_DEVEPTIER[0] = USBHS_DEVEPTIER_CTRL_RXSTPES;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear stall, data toggle is also reset to DATA0
|
// clear stall, data toggle is also reset to DATA0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user