diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-01 16:37:43 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-01 16:37:43 +0000 |
commit | bf743808c5339de5390252aaedf42a0d19602f44 (patch) | |
tree | 3c75bb02b2d43496305d12b6237d454ee8001a84 | |
parent | 86d3b56bfb45b27553f54e8001cba22c6206d373 (diff) | |
download | ChibiOS-bf743808c5339de5390252aaedf42a0d19602f44.tar.gz ChibiOS-bf743808c5339de5390252aaedf42a0d19602f44.tar.bz2 ChibiOS-bf743808c5339de5390252aaedf42a0d19602f44.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6902 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/STM32/OTGv1/usb_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c index 58c3e2400..9b1d3d489 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.c +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c @@ -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);
}
|