mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
ExpressLrs v2.0.0 support
This commit is contained in:
parent
4c034d67ee
commit
e00a3abc59
56 changed files with 6235 additions and 49 deletions
|
@ -240,7 +240,20 @@ typedef enum {
|
|||
TYPE_TIMER
|
||||
} channelType_t;
|
||||
|
||||
void timerConfigure(const timerHardware_t *timHw, uint16_t period, uint32_t hz); // This interface should be replaced.
|
||||
//
|
||||
// Legacy API
|
||||
//
|
||||
void timerConfigure(const timerHardware_t *timHw, uint16_t period, uint32_t hz);
|
||||
|
||||
//
|
||||
// Initialisation
|
||||
//
|
||||
void timerInit(void);
|
||||
void timerStart(void);
|
||||
|
||||
//
|
||||
// per-channel
|
||||
//
|
||||
|
||||
void timerChConfigIC(const timerHardware_t *timHw, bool polarityRising, unsigned inputFilterSamples);
|
||||
void timerChConfigICDual(const timerHardware_t* timHw, bool polarityRising, unsigned inputFilterSamples);
|
||||
|
@ -261,13 +274,18 @@ void timerChClearCCFlag(const timerHardware_t* timHw);
|
|||
|
||||
void timerChInit(const timerHardware_t *timHw, channelType_t type, int irqPriority, uint8_t irq);
|
||||
|
||||
void timerInit(void);
|
||||
void timerStart(void);
|
||||
//
|
||||
// per-timer
|
||||
//
|
||||
|
||||
void timerForceOverflow(TIM_TypeDef *tim);
|
||||
|
||||
void timerConfigUpdateCallback(const TIM_TypeDef *tim, timerOvrHandlerRec_t *updateCallback);
|
||||
|
||||
uint32_t timerClock(TIM_TypeDef *tim);
|
||||
|
||||
void configTimeBase(TIM_TypeDef *tim, uint16_t period, uint32_t hz); // TODO - just for migration
|
||||
void timerReconfigureTimeBase(TIM_TypeDef *tim, uint16_t period, uint32_t hz);
|
||||
|
||||
rccPeriphTag_t timerRCC(TIM_TypeDef *tim);
|
||||
uint8_t timerInputIrq(TIM_TypeDef *tim);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue