git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3259 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
c5750b6977
commit
8f5830dad8
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue