aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-01-18 08:56:54 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-01-18 08:56:54 +0000
commite44be744f288e2c58c0d0e26ed1c08123d821641 (patch)
tree0a640ab7f1b292572b06fc673086ed9d0d92a5e0 /os
parent987e86b8c85f8217a5ced30fb8e894a340e7ebe6 (diff)
downloadChibiOS-e44be744f288e2c58c0d0e26ed1c08123d821641.tar.gz
ChibiOS-e44be744f288e2c58c0d0e26ed1c08123d821641.tar.bz2
ChibiOS-e44be744f288e2c58c0d0e26ed1c08123d821641.zip
Fixed bug #457.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6627 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32/OTGv1/usb_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c
index 978acea90..3dcb0d839 100644
--- a/os/hal/platforms/STM32/OTGv1/usb_lld.c
+++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c
@@ -549,7 +549,7 @@ static void otg_epin_handler(USBDriver *usbp, usbep_t ep) {
stm32_otg_t *otgp = usbp->otg;
uint32_t epint = otgp->ie[ep].DIEPINT;
- otgp->ie[ep].DIEPINT = 0xFFFFFFFF;
+ otgp->ie[ep].DIEPINT = epint;
if (epint & DIEPINT_TOC) {
/* Timeouts not handled yet, not sure how to handle.*/
@@ -582,7 +582,7 @@ static void otg_epout_handler(USBDriver *usbp, usbep_t ep) {
uint32_t epint = otgp->oe[ep].DOEPINT;
/* Resets all EP IRQ sources.*/
- otgp->oe[ep].DOEPINT = 0xFFFFFFFF;
+ otgp->oe[ep].DOEPINT = epint;
if ((epint & DOEPINT_STUP) && (otgp->DOEPMSK & DOEPMSK_STUPM)) {
/* Setup packets handling, setup packets are handled using a