diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-20 11:18:01 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-20 11:18:01 +0000 |
commit | ae601b1e4e1e75bb61e6b2155b81fa3986d0e9fc (patch) | |
tree | 8eef39e6950b3fc4ec7e2e72701a4caff9763bec /os/hal/platforms/STM32L1xx | |
parent | 45efc9bae6aa43fe150c571ec3ce2f0252de9b13 (diff) | |
download | ChibiOS-ae601b1e4e1e75bb61e6b2155b81fa3986d0e9fc.tar.gz ChibiOS-ae601b1e4e1e75bb61e6b2155b81fa3986d0e9fc.tar.bz2 ChibiOS-ae601b1e4e1e75bb61e6b2155b81fa3986d0e9fc.zip |
Fixed bug 3475188 and other minor problems.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3829 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32L1xx')
-rw-r--r-- | os/hal/platforms/STM32L1xx/stm32_dma.c | 1 | ||||
-rw-r--r-- | os/hal/platforms/STM32L1xx/stm32_dma.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32L1xx/stm32_dma.c b/os/hal/platforms/STM32L1xx/stm32_dma.c index 851efb8b5..ec1640ba4 100644 --- a/os/hal/platforms/STM32L1xx/stm32_dma.c +++ b/os/hal/platforms/STM32L1xx/stm32_dma.c @@ -302,7 +302,6 @@ 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;
/* Enables the associated IRQ vector if a callback is defined.*/
diff --git a/os/hal/platforms/STM32L1xx/stm32_dma.h b/os/hal/platforms/STM32L1xx/stm32_dma.h index a12f60fcb..597cce763 100644 --- a/os/hal/platforms/STM32L1xx/stm32_dma.h +++ b/os/hal/platforms/STM32L1xx/stm32_dma.h @@ -301,7 +301,7 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags); * @special
*/
#define dmaStreamDisable(dmastp) { \
- (dmastp)->stream->CR &= ~STM32_DMA_CR_EN; \
+ (dmastp)->channel->CCR &= ~STM32_DMA_CR_EN; \
dmaStreamClearInterrupt(dmastp); \
}
|