aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-19 18:00:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-19 18:00:51 +0000
commit9eef4917a71115fb38adcaa8bc11d00884055917 (patch)
tree230481aa39aeb3b960f26f8942626d9c8fb84adc /os/hal/platforms
parentff207a92df56d751c994691286acea57ab65fbed (diff)
downloadChibiOS-9eef4917a71115fb38adcaa8bc11d00884055917.tar.gz
ChibiOS-9eef4917a71115fb38adcaa8bc11d00884055917.tar.bz2
ChibiOS-9eef4917a71115fb38adcaa8bc11d00884055917.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4699 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32/OTGv1/usb_lld.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c
index 98d0f6d03..1dd7e1b8f 100644
--- a/os/hal/platforms/STM32/OTGv1/usb_lld.c
+++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c
@@ -705,6 +705,8 @@ static msg_t usb_lld_pump(void *p) {
epmask = (1 << ep);
if (usbp->txpending & epmask) {
+ bool_t done;
+
chSysLock();
/* USB interrupts are globally *suspended* because the peripheral
does not allow any interference during the TX FIFO filling
@@ -717,7 +719,7 @@ static msg_t usb_lld_pump(void *p) {
usbp->txpending &= ~epmask;
chSysUnlock();
- bool_t done = otg_txfifo_handler(usbp, ep);
+ done = otg_txfifo_handler(usbp, ep);
chSysLock();
otgp->GAHBCFG |= GAHBCFG_GINTMSK;