aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F4xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-10 11:04:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-10 11:04:37 +0000
commit4e3ffc5134a06a4e6b87a02fc85bd16e77656bd4 (patch)
treec3513d4cf7da5a63816f4d174259803687ed2411 /os/hal/platforms/STM32F4xx
parentcd4329c9d1d6de9f4da731ac2d2a251ee45c87e4 (diff)
downloadChibiOS-4e3ffc5134a06a4e6b87a02fc85bd16e77656bd4.tar.gz
ChibiOS-4e3ffc5134a06a4e6b87a02fc85bd16e77656bd4.tar.bz2
ChibiOS-4e3ffc5134a06a4e6b87a02fc85bd16e77656bd4.zip
Fixed bug 3607518.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5401 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx')
-rw-r--r--os/hal/platforms/STM32F4xx/stm32_dma.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F4xx/stm32_dma.h b/os/hal/platforms/STM32F4xx/stm32_dma.h
index cb4819f1d..9b745a917 100644
--- a/os/hal/platforms/STM32F4xx/stm32_dma.h
+++ b/os/hal/platforms/STM32F4xx/stm32_dma.h
@@ -373,7 +373,9 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags);
* @special
*/
#define dmaStreamDisable(dmastp) { \
- (dmastp)->stream->CR &= ~STM32_DMA_CR_EN; \
+ (dmastp)->stream->CR &= ~(STM32_DMA_CR_TCIE | STM32_DMA_CR_HTIE | \
+ STM32_DMA_CR_TEIE | STM32_DMA_CR_DMEIE | \
+ STM32_DMA_CR_EN); \
while (((dmastp)->stream->CR & STM32_DMA_CR_EN) != 0) \
; \
dmaStreamClearInterrupt(dmastp); \