mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Move transponder to use IO/Timer configuraton.
Initialisation now matches LED strip code.
This commit is contained in:
parent
135231f289
commit
782d8316da
6 changed files with 90 additions and 85 deletions
|
@ -55,13 +55,14 @@ typedef uint32_t timCNT_t;
|
|||
#endif
|
||||
|
||||
typedef enum {
|
||||
TIM_USE_ANY = 0x0,
|
||||
TIM_USE_NONE = 0x0,
|
||||
TIM_USE_PPM = 0x1,
|
||||
TIM_USE_PWM = 0x2,
|
||||
TIM_USE_MOTOR = 0x4,
|
||||
TIM_USE_SERVO = 0x8,
|
||||
TIM_USE_LED = 0x10
|
||||
TIM_USE_ANY = 0x0,
|
||||
TIM_USE_NONE = 0x0,
|
||||
TIM_USE_PPM = 0x1,
|
||||
TIM_USE_PWM = 0x2,
|
||||
TIM_USE_MOTOR = 0x4,
|
||||
TIM_USE_SERVO = 0x8,
|
||||
TIM_USE_LED = 0x10,
|
||||
TIM_USE_TRANSPONDER = 0x20
|
||||
} timerUsageFlag_e;
|
||||
|
||||
// use different types from capture and overflow - multiple overflow handlers are implemented as linked list
|
||||
|
@ -194,4 +195,4 @@ void timerOCPreloadConfig(TIM_TypeDef *tim, uint8_t channel, uint16_t preload);
|
|||
#endif
|
||||
|
||||
volatile timCCR_t *timerCCR(TIM_TypeDef *tim, uint8_t channel);
|
||||
uint16_t timerDmaSource(uint8_t channel);
|
||||
uint16_t timerDmaSource(uint8_t channel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue