From 36129fd993c904b3430fb28ced6d03262a83a681 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 3 Jun 2012 07:44:25 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4256 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/OTGv1/usb_lld.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c index 009d9712c..0059f69dc 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.c +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c @@ -798,12 +798,11 @@ void usb_lld_prepare_transmit(USBDriver *usbp, usbep_t ep, } else { /* Transfer initialization.*/ - uint32_t pcnt = (n + (usbp->epc[ep]->in_maxsize - 1) / - usbp->epc[ep]->in_maxsize); + uint32_t pcnt = (n + usbp->epc[ep]->in_maxsize - 1) / + usbp->epc[ep]->in_maxsize; OTG->ie[ep].DIEPTSIZ = DIEPTSIZ_PKTCNT(pcnt) | DIEPTSIZ_XFRSIZ(usbp->epc[ep]->in_state->txsize); } - OTG->DIEPEMPMSK |= DIEPEMPMSK_INEPTXFEM(ep); } /** @@ -831,7 +830,8 @@ void usb_lld_start_out(USBDriver *usbp, usbep_t ep) { void usb_lld_start_in(USBDriver *usbp, usbep_t ep) { (void)usbp; - (void)ep; + + OTG->DIEPEMPMSK |= DIEPEMPMSK_INEPTXFEM(ep); } /** -- cgit v1.2.3