mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +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
|
@ -13,20 +13,6 @@
|
|||
#define MODE_MASK ((1|2) << MODE_OFFSET)
|
||||
#define PUPD_MASK ((1|2) << PUPD_OFFSET)
|
||||
#define OUTPUT_MASK ((1|2) << OUTPUT_OFFSET)
|
||||
/*
|
||||
typedef enum
|
||||
{
|
||||
Mode_AIN = (GPIO_PuPd_NOPULL << 2) | GPIO_Mode_AN,
|
||||
Mode_IN_FLOATING = (GPIO_PuPd_NOPULL << 2) | GPIO_Mode_IN,
|
||||
Mode_IPD = (GPIO_PuPd_DOWN << 2) | GPIO_Mode_IN,
|
||||
Mode_IPU = (GPIO_PuPd_UP << 2) | GPIO_Mode_IN,
|
||||
Mode_Out_OD = (GPIO_OType_OD << 4) | GPIO_Mode_OUT,
|
||||
Mode_Out_PP = (GPIO_OType_PP << 4) | GPIO_Mode_OUT,
|
||||
Mode_AF_OD = (GPIO_OType_OD << 4) | GPIO_Mode_AF,
|
||||
Mode_AF_PP = (GPIO_OType_PP << 4) | GPIO_Mode_AF
|
||||
} GPIO_Mode;
|
||||
|
||||
*/
|
||||
|
||||
//#define GPIO_Speed_10MHz GPIO_Speed_Level_1 Fast Speed:10MHz
|
||||
//#define GPIO_Speed_2MHz GPIO_Speed_Level_2 Medium Speed:2MHz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue