mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
STM32F30x - Working parallel PWM. Timer IRQ handle was not defined for
TIM8 correctly. Software serial conficted with parallel PWM input. Fixed crash due to incorrect timerConfig index calculation code. The crash occurred when capture compare interrupt handlers attempted to call an invalid callback. Note: the crash does not affect existing baseflight code since the formula is OK when using a 2 dimensional array with equal dimensions. Formula details here: https://docs.google.com/spreadsheets/d/1UuxnC0VKiprvt1wt3KXffefEWJUb_-ILFLQuP377Anw
This commit is contained in:
parent
fbe2f82c05
commit
92bed4a33d
10 changed files with 82 additions and 82 deletions
|
@ -2,7 +2,14 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 14
|
||||
|
||||
typedef void timerCCCallbackPtr(uint8_t port, uint16_t capture);
|
||||
#ifdef STM32F303xC
|
||||
typedef uint32_t captureCompare_t;
|
||||
#endif
|
||||
#ifdef STM32F10X_MD
|
||||
typedef uint32_t captureCompare_t;
|
||||
#endif
|
||||
|
||||
typedef void timerCCCallbackPtr(uint8_t port, captureCompare_t capture);
|
||||
|
||||
typedef struct {
|
||||
TIM_TypeDef *tim;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue