1
0
Fork 0
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:
Konstantin Sharlaimov 2018-09-24 15:10:59 +02:00 committed by GitHub
parent 3b1b1bfc81
commit 78bc53f3ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
196 changed files with 2780 additions and 3164 deletions

View file

@ -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);