mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Removed clearing of IT_TCIF flag
This commit is contained in:
parent
6487f995d8
commit
9d15fc5441
2 changed files with 0 additions and 7 deletions
|
@ -153,11 +153,7 @@ void ws2811LedStripHardwareInit(ioTag_t ioTag)
|
||||||
|
|
||||||
DMA_Init(dmaRef, &DMA_InitStructure);
|
DMA_Init(dmaRef, &DMA_InitStructure);
|
||||||
TIM_DMACmd(timer, timerDmaSource(timerHardware->channel), ENABLE);
|
TIM_DMACmd(timer, timerDmaSource(timerHardware->channel), ENABLE);
|
||||||
|
|
||||||
DMA_ITConfig(dmaRef, DMA_IT_TC, ENABLE);
|
DMA_ITConfig(dmaRef, DMA_IT_TC, ENABLE);
|
||||||
#ifdef STM32F4
|
|
||||||
DMA_ClearITPendingBit(dmaRef, dmaFlag_IT_TCIF(dmaRef));
|
|
||||||
#endif
|
|
||||||
ws2811Initialised = true;
|
ws2811Initialised = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -216,9 +216,6 @@ void pwmDigitalMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t
|
||||||
|
|
||||||
DMA_Init(dmaRef, &DMA_InitStructure);
|
DMA_Init(dmaRef, &DMA_InitStructure);
|
||||||
DMA_ITConfig(dmaRef, DMA_IT_TC, ENABLE);
|
DMA_ITConfig(dmaRef, DMA_IT_TC, ENABLE);
|
||||||
#ifdef STM32F4
|
|
||||||
DMA_ClearITPendingBit(dmaRef, dmaFlag_IT_TCIF(dmaRef));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue