diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-28 12:16:49 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-28 12:16:49 +0000 |
commit | 8f5830dad86a26f92a293fc85a508a5b07c8f8e7 (patch) | |
tree | 80b34e7bb98c9abb5f17ad346c2b708a033ca66a /os | |
parent | c5750b6977d7a45fe44c93df66c109ad446c5ce6 (diff) | |
download | ChibiOS-8f5830dad86a26f92a293fc85a508a5b07c8f8e7.tar.gz ChibiOS-8f5830dad86a26f92a293fc85a508a5b07c8f8e7.tar.bz2 ChibiOS-8f5830dad86a26f92a293fc85a508a5b07c8f8e7.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3259 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32/DMAv1/stm32_dma.c | 3 | ||||
-rw-r--r-- | os/hal/platforms/STM32/DMAv2/stm32_dma.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/DMAv1/stm32_dma.c b/os/hal/platforms/STM32/DMAv1/stm32_dma.c index e24ef565b..1df93bb2f 100644 --- a/os/hal/platforms/STM32/DMAv1/stm32_dma.c +++ b/os/hal/platforms/STM32/DMAv1/stm32_dma.c @@ -446,8 +446,7 @@ bool_t dmaStreamAllocate(const stm32_dma_stream_t *dmastp, /* Putting the stream in a safe state.*/
dmaStreamDisable(dmastp);
dmaStreamClearInterrupt(dmastp);
- dmastp->channel->CR = STM32_DMA_CR_RESET_VALUE;
- dmastp->channel->FCR = STM32_DMA_FCR_RESET_VALUE;
+ dmastp->channel->CCR = STM32_DMA_CCR_RESET_VALUE;
/* Enables the associated IRQ vector if a callback is defined.*/
if (func != NULL)
diff --git a/os/hal/platforms/STM32/DMAv2/stm32_dma.c b/os/hal/platforms/STM32/DMAv2/stm32_dma.c index 05d6100c0..2b6851ad6 100644 --- a/os/hal/platforms/STM32/DMAv2/stm32_dma.c +++ b/os/hal/platforms/STM32/DMAv2/stm32_dma.c @@ -487,7 +487,8 @@ bool_t dmaStreamAllocate(const stm32_dma_stream_t *dmastp, /* Putting the stream in a safe state.*/
dmaStreamDisable(dmastp);
dmaStreamClearInterrupt(dmastp);
- dmastp->channel->CCR = STM32_DMA_CCR_RESET_VALUE;
+ dmastp->channel->CR = STM32_DMA_CR_RESET_VALUE;
+ dmastp->channel->FCR = STM32_DMA_FCR_RESET_VALUE;
/* Enables the associated IRQ vector if a callback is defined.*/
if (func != NULL)
|