mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Set GPIOs to GPIO_SPEED_FREQ_LOW for timer based DSHOT
This commit is contained in:
parent
950d586e66
commit
33c8a9c95c
2 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ bool pwmDshotMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t m
|
||||||
#endif
|
#endif
|
||||||
motor->timerHardware = timerHardware;
|
motor->timerHardware = timerHardware;
|
||||||
|
|
||||||
motor->iocfg = IO_CONFIG(GPIO_MODE_AF_PP, GPIO_SPEED_FREQ_VERY_HIGH, pupMode);
|
motor->iocfg = IO_CONFIG(GPIO_MODE_AF_PP, GPIO_SPEED_FREQ_LOW, pupMode);
|
||||||
#ifdef STM32H7
|
#ifdef STM32H7
|
||||||
motor->io = motorIO;
|
motor->io = motorIO;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -294,7 +294,7 @@ bool pwmDshotMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t m
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
motor->iocfg = IO_CONFIG(GPIO_MODE_AF_PP, GPIO_SPEED_FREQ_VERY_HIGH, pupMode);
|
motor->iocfg = IO_CONFIG(GPIO_MODE_AF_PP, GPIO_SPEED_FREQ_LOW, pupMode);
|
||||||
const uint8_t timerIndex = getTimerIndex(timer);
|
const uint8_t timerIndex = getTimerIndex(timer);
|
||||||
const bool configureTimer = (timerIndex == dmaMotorTimerCount - 1);
|
const bool configureTimer = (timerIndex == dmaMotorTimerCount - 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue