git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2947 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2011-05-10 18:37:26 +00:00
parent 0cb8d71e9d
commit b381c928c7
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ void dmaAllocate(uint32_t dma, uint32_t channel,
"dmaAllocate(), #2", "already allocated");
/* If the DMA unit was idle then the clock is enabled.*/
if (dmamsk1 == 0) {
if (dmamsk2 == 0) {
RCC->AHBENR |= RCC_AHBENR_DMA2EN;
DMA2->IFCR = 0x0FFFFFFF;
}