git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2947 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
0cb8d71e9d
commit
b381c928c7
|
@ -370,7 +370,7 @@ void dmaAllocate(uint32_t dma, uint32_t channel,
|
||||||
"dmaAllocate(), #2", "already allocated");
|
"dmaAllocate(), #2", "already allocated");
|
||||||
|
|
||||||
/* If the DMA unit was idle then the clock is enabled.*/
|
/* If the DMA unit was idle then the clock is enabled.*/
|
||||||
if (dmamsk1 == 0) {
|
if (dmamsk2 == 0) {
|
||||||
RCC->AHBENR |= RCC_AHBENR_DMA2EN;
|
RCC->AHBENR |= RCC_AHBENR_DMA2EN;
|
||||||
DMA2->IFCR = 0x0FFFFFFF;
|
DMA2->IFCR = 0x0FFFFFFF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue