fix irq endpoint handling
the irq endpoint only offers data if card insertions/removals happen, which is rarely the case, so read timeouts are fine. Change-Id: Ide7ffe14c94f56d0ed6f27e30e039905be32ad09
This commit is contained in:
parent
af4236db1f
commit
7a4a3117d0
|
@ -119,6 +119,11 @@ function main() runs on CCID_Emulation_CT {
|
|||
}
|
||||
*/
|
||||
}
|
||||
[] USB.receive(tr_UsbXfer_compl(g_ep_irq, USB_TRANSFER_TYPE_INTERRUPT,
|
||||
USB_TRANSFER_TIMED_OUT, g_dev_hdl, ?)) -> value tc {
|
||||
/* Submit another IRQ transfer */
|
||||
f_usb_submit_xfer(g_ep_irq);
|
||||
}
|
||||
[] USB.receive(tr_UsbXfer_compl(?, ?, USB_TRANSFER_ERROR, g_dev_hdl, ?)) -> value tc {
|
||||
setverdict(fail, "Unexpected USB_TRANSFER_ERROR on EP ", int2hex(tc.endpoint, 2));
|
||||
mtc.stop;
|
||||
|
|
Loading…
Reference in New Issue