1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Fix LED_STRIP feature // Add DMA drivers // UART fixes

This commit is contained in:
borisbstyle 2016-02-10 22:36:05 +01:00
parent 2af929797d
commit 3a156f98ab
17 changed files with 309 additions and 196 deletions

View file

@ -18,7 +18,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include <platform.h>
#include "common/color.h"
#include "drivers/light_ws2811strip.h"
@ -112,15 +112,6 @@ void ws2811LedStripHardwareInit(void)
ws2811UpdateStrip();
}
void DMA1_Channel6_IRQHandler(void)
{
if (DMA_GetFlagStatus(DMA1_FLAG_TC6)) {
ws2811LedDataTransferInProgress = 0;
DMA_Cmd(DMA1_Channel6, DISABLE); // disable DMA channel 6
DMA_ClearFlag(DMA1_FLAG_TC6); // clear DMA1 Channel 6 transfer complete flag
}
}
void ws2811LedStripDMAEnable(void)
{
DMA_SetCurrDataCounter(DMA1_Channel6, WS2811_DMA_BUFFER_SIZE); // load number of bytes to be transferred