git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6902 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2014-05-01 16:37:43 +00:00
parent 86d3b56bfb
commit bf743808c5
1 changed files with 1 additions and 1 deletions

View File

@ -1217,7 +1217,7 @@ void usb_lld_prepare_receive(USBDriver *usbp, usbep_t ep) {
pcnt = (osp->rxsize + usbp->epc[ep]->out_maxsize - 1) /
usbp->epc[ep]->out_maxsize;
usbp->otg->oe[ep].DOEPTSIZ = DOEPTSIZ_STUPCNT(3) | DOEPTSIZ_PKTCNT(pcnt) |
DOEPTSIZ_XFRSIZ(usbp->epc[ep]->out_maxsize);
DOEPTSIZ_XFRSIZ(osp->rxsize);
}