mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Combined timer output and inverted fields
This commit is contained in:
parent
94f95d6f16
commit
c10129bc50
36 changed files with 402 additions and 403 deletions
|
@ -76,13 +76,14 @@ typedef struct timerHardware_s {
|
|||
ioTag_t tag;
|
||||
uint8_t channel;
|
||||
uint8_t irq;
|
||||
uint8_t outputEnable;
|
||||
uint8_t output;
|
||||
ioConfig_t ioMode;
|
||||
#if defined(STM32F3) || defined(STM32F4)
|
||||
uint8_t alternateFunction;
|
||||
#endif
|
||||
uint8_t outputInverted;
|
||||
} timerHardware_t;
|
||||
enum {TIMER_OUTPUT_ENABLED = 0x01, TIMER_OUTPUT_INVERTED = 0x02};
|
||||
|
||||
|
||||
#ifdef STM32F1
|
||||
#if defined(STM32F10X_XL) || defined(STM32F10X_HD_VL)
|
||||
|
@ -147,4 +148,4 @@ void timerForceOverflow(TIM_TypeDef *tim);
|
|||
|
||||
void configTimeBase(TIM_TypeDef *tim, uint16_t period, uint8_t mhz); // TODO - just for migration
|
||||
|
||||
rccPeriphTag_t timerRCC(TIM_TypeDef *tim);
|
||||
rccPeriphTag_t timerRCC(TIM_TypeDef *tim);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue