Add testcase for EP0 stall recovery to USBTMC test script.

This commit is contained in:
Nathan Conrad
2019-10-02 00:31:47 -04:00
parent e5f38e3e86
commit 1e193212d7
2 changed files with 18 additions and 2 deletions

View File

@@ -418,7 +418,7 @@ static uint16_t dcd_ep_ctr_handler(void)
uint8_t userMemBuf[8];
/* Get SETUP Packet*/
count = pcd_get_ep_rx_cnt(USB, EPindex);
if(count == 8) // Setup packet should always be 8 bits. If not, ignore it, and try again.
if(count == 8) // Setup packet should always be 8 bytes. If not, ignore it, and try again.
{
// Must reset EP to NAK (in case it had been stalling) (though, maybe too late here)
pcd_set_ep_rx_status(USB,0u,USB_EP_RX_NAK);