feat: better microsecond timer (#4112)

This commit is contained in:
Raphael Coeffic
2023-09-26 18:30:55 +02:00
committed by GitHub
parent 6f40ea44ad
commit 6abd4263a4
22 changed files with 135 additions and 195 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ TASK_FUNCTION(mixerTask)
if (_mixer_running) {
uint16_t t0 = getTmr2MHz();
uint32_t t0 = timersGetUsTick();
DEBUG_TIMER_START(debugTimerMixer);
mixerTaskLock();
@@ -213,7 +213,7 @@ TASK_FUNCTION(mixerTask)
// so let's do it here.
WDG_RESET();
t0 = getTmr2MHz() - t0;
t0 = timersGetUsTick() - t0;
if (t0 > maxMixerDuration)
maxMixerDuration = t0;
}