mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Moved USB detection to IO
Fixed CHEBUZZF3, SPRACINGF3 (EVO, MINI) and F3Discovery targets
This commit is contained in:
parent
9c1c4fef33
commit
78da0fad65
12 changed files with 80 additions and 155 deletions
|
@ -23,6 +23,7 @@
|
|||
*
|
||||
* Currently the timings are 0 = 350ns high/800ns and 1 = 700ns high/650ns low.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
@ -36,6 +37,8 @@
|
|||
#include "drivers/dma.h"
|
||||
#include "drivers/light_ws2811strip.h"
|
||||
|
||||
#ifdef LED_STRIP
|
||||
|
||||
uint8_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE];
|
||||
volatile uint8_t ws2811LedDataTransferInProgress = 0;
|
||||
|
||||
|
@ -170,3 +173,4 @@ void ws2811UpdateStrip(void)
|
|||
ws2811LedStripDMAEnable();
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue