1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 23:35:34 +03:00

Small tidy of LED code

This commit is contained in:
blckmn 2016-11-09 09:58:21 +11:00
parent 657eee6617
commit 8c9ed2d437
6 changed files with 29 additions and 33 deletions

View file

@ -31,9 +31,6 @@
#include "rcc.h"
#include "timer.h"
#define WS2811_TIMER_HZ 24000000
#define WS2811_TIMER_PERIOD 29
static IO_t ws2811IO = IO_NONE;
bool ws2811Initialised = false;
static DMA_Channel_TypeDef *dmaChannel = NULL;
@ -126,10 +123,7 @@ void ws2811LedStripHardwareInit(ioTag_t ioTag)
DMA_ITConfig(dmaChannel, DMA_IT_TC, ENABLE);
dmaSetHandler(timerHardware->dmaIrqHandler, WS2811_DMA_IRQHandler, NVIC_PRIO_WS2811_DMA, 0);
const hsvColor_t hsv_white = { 0, 255, 255};
ws2811Initialised = true;
setStripColor(&hsv_white);
ws2811UpdateStrip();
}
void ws2811LedStripDMAEnable(void)