mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Moving LED strip to be configurable via resource command
This commit is contained in:
parent
3b506415c9
commit
e56f915018
18 changed files with 281 additions and 214 deletions
|
@ -55,6 +55,7 @@ typedef uint32_t timCNT_t;
|
|||
#endif
|
||||
|
||||
typedef enum {
|
||||
TIM_USE_ANY = 0x0,
|
||||
TIM_USE_PPM = 0x1,
|
||||
TIM_USE_PWM = 0x2,
|
||||
TIM_USE_MOTOR = 0x4,
|
||||
|
@ -92,11 +93,11 @@ typedef struct timerHardware_s {
|
|||
#if defined(STM32F3) || defined(STM32F4) || defined(STM32F7)
|
||||
uint8_t alternateFunction;
|
||||
#endif
|
||||
#if defined(USE_DSHOT)
|
||||
#if defined(USE_DSHOT) || defined(LED_STRIP)
|
||||
#if defined(STM32F4) || defined(STM32F7)
|
||||
DMA_Stream_TypeDef *dmaStream;
|
||||
uint32_t dmaChannel;
|
||||
#elif defined(STM32F3)
|
||||
#elif defined(STM32F3) || defined(STM32F1)
|
||||
DMA_Channel_TypeDef *dmaChannel;
|
||||
#endif
|
||||
uint8_t dmaIrqHandler;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue