Removed clearing of IT_TCIF flag

This commit is contained in:
blckmn 2017-03-16 22:14:13 +11:00
parent 6487f995d8
commit 9d15fc5441
2 changed files with 0 additions and 7 deletions

View File

@ -153,11 +153,7 @@ void ws2811LedStripHardwareInit(ioTag_t ioTag)
DMA_Init(dmaRef, &DMA_InitStructure);
TIM_DMACmd(timer, timerDmaSource(timerHardware->channel), ENABLE);
DMA_ITConfig(dmaRef, DMA_IT_TC, ENABLE);
#ifdef STM32F4
DMA_ClearITPendingBit(dmaRef, dmaFlag_IT_TCIF(dmaRef));
#endif
ws2811Initialised = true;
}

View File

@ -216,9 +216,6 @@ void pwmDigitalMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t
DMA_Init(dmaRef, &DMA_InitStructure);
DMA_ITConfig(dmaRef, DMA_IT_TC, ENABLE);
#ifdef STM32F4
DMA_ClearITPendingBit(dmaRef, dmaFlag_IT_TCIF(dmaRef));
#endif
}
#endif