|
NinjaFlight
|
#include <stdbool.h>#include <stdint.h>#include <platform.h>#include "gpio.h"#include "nvic.h"#include "common/color.h"#include "drivers/light_ws2811strip.h"
Macros | |
| #define | WS2811_GPIO GPIOB |
| #define | WS2811_GPIO_AHB_PERIPHERAL RCC_AHBPeriph_GPIOB |
| #define | WS2811_GPIO_AF GPIO_AF_1 |
| #define | WS2811_PIN GPIO_Pin_8 |
| #define | WS2811_PIN_SOURCE GPIO_PinSource8 |
| #define | WS2811_TIMER TIM16 |
| #define | WS2811_TIMER_APB2_PERIPHERAL RCC_APB2Periph_TIM16 |
| #define | WS2811_DMA_CHANNEL DMA1_Channel3 |
| #define | WS2811_IRQ DMA1_Channel3_IRQn |
| #define | WS2811_DMA_TC_FLAG DMA1_FLAG_TC3 |
| #define | WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER |
Functions | |
| void | ws2811LedStripHardwareInit (void) |
| void | ws2811LedStripDMAEnable (void) |
| #define WS2811_DMA_CHANNEL DMA1_Channel3 |
| #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER |
| #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC3 |
| #define WS2811_GPIO GPIOB |
| #define WS2811_GPIO_AF GPIO_AF_1 |
| #define WS2811_GPIO_AHB_PERIPHERAL RCC_AHBPeriph_GPIOB |
| #define WS2811_IRQ DMA1_Channel3_IRQn |
| #define WS2811_PIN GPIO_Pin_8 |
| #define WS2811_PIN_SOURCE GPIO_PinSource8 |
| #define WS2811_TIMER TIM16 |
| #define WS2811_TIMER_APB2_PERIPHERAL RCC_APB2Periph_TIM16 |
| void ws2811LedStripDMAEnable | ( | void | ) |

| void ws2811LedStripHardwareInit | ( | void | ) |
