1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

OP-1379 - Clear output pin at the end of dma cycle

This commit is contained in:
Alessio Morale 2014-09-25 00:59:39 +02:00
parent 3c6a8e0395
commit 7e789ccc69

View File

@ -342,6 +342,7 @@ void PIOS_WS2811_Update()
void PIOS_WS2811_DMA_irq_handler()
{
pios_ws2811_pin_cfg->gpio->BSRRH = dmaSource[0];
pios_ws2811_cfg->timer->CR1 &= (uint16_t) ~TIM_CR1_CEN;
DMA_ClearFlag(pios_ws2811_cfg->streamCh1, pios_ws2811_cfg->irq.flags);
DMA_Cmd(pios_ws2811_cfg->streamCh2, DISABLE);