Removed clearing of IT_TCIF flag
This commit is contained in:
parent
6487f995d8
commit
9d15fc5441
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue