Merge pull request #1061 from hathach/samd-compliance
Update SAMD to pass USBCV
This commit is contained in:
@@ -230,10 +230,12 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * desc_edpt)
|
||||
if ( dir == TUSB_DIR_OUT )
|
||||
{
|
||||
ep->EPCFG.bit.EPTYPE0 = desc_edpt->bmAttributes.xfer + 1;
|
||||
ep->EPSTATUSCLR.reg = USB_DEVICE_EPSTATUSCLR_STALLRQ0 | USB_DEVICE_EPSTATUSCLR_DTGLOUT; // clear stall & dtoggle
|
||||
ep->EPINTENSET.bit.TRCPT0 = true;
|
||||
}else
|
||||
{
|
||||
ep->EPCFG.bit.EPTYPE1 = desc_edpt->bmAttributes.xfer + 1;
|
||||
ep->EPSTATUSCLR.reg = USB_DEVICE_EPSTATUSCLR_STALLRQ1 | USB_DEVICE_EPSTATUSCLR_DTGLIN; // clear stall & dtoggle
|
||||
ep->EPINTENSET.bit.TRCPT1 = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user