mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Refactor TIMER/DMA framework (#3833)
* TIM/DMA abstraction * Migrage F7 TIM/DMA to HAL_LL * Refactor timers to use conventional HZ * Refactor PWM ourput code to use highest possible resolution * Remove TIMER_OUTPUT_ENABLED * Temporary disable SPRACINGF3NEO due to out of RAM
This commit is contained in:
parent
3b1b1bfc81
commit
78bc53f3ad
196 changed files with 2780 additions and 3164 deletions
|
@ -319,15 +319,10 @@ void init(void)
|
|||
(motorConfig()->motorPwmProtocol == PWM_TYPE_MULTISHOT);
|
||||
#endif
|
||||
pwm_params.motorPwmRate = motorConfig()->motorPwmRate;
|
||||
pwm_params.idlePulse = motorConfig()->mincommand;
|
||||
if (feature(FEATURE_3D)) {
|
||||
pwm_params.idlePulse = flight3DConfig()->neutral3d;
|
||||
}
|
||||
|
||||
if (motorConfig()->motorPwmProtocol == PWM_TYPE_BRUSHED) {
|
||||
pwm_params.useFastPwm = false;
|
||||
featureClear(FEATURE_3D);
|
||||
pwm_params.idlePulse = 0; // brushed motors
|
||||
}
|
||||
|
||||
pwm_params.enablePWMOutput = feature(FEATURE_PWM_OUTPUT_ENABLE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue