From eda2f08c389d94cc2384d4b5f462327bba7d503b Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 10 Sep 2018 22:42:24 -0400 Subject: [PATCH] docs --- firmware/controllers/system/SingleTimerExecutor.cpp | 11 +++-------- firmware/controllers/trigger/rpm_calculator.cpp | 2 -- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/firmware/controllers/system/SingleTimerExecutor.cpp b/firmware/controllers/system/SingleTimerExecutor.cpp index daded8b0c2..009edc82da 100644 --- a/firmware/controllers/system/SingleTimerExecutor.cpp +++ b/firmware/controllers/system/SingleTimerExecutor.cpp @@ -60,17 +60,12 @@ Executor::Executor() { queue.setLateDelay(US2NT(100)); } +/** + * callback would be executed either on ISR thread or current thread if we would need to execute right away + */ void Executor::scheduleByTimestamp(scheduling_s *scheduling, efitimeus_t timeUs, schfunc_t callback, void *param) { scheduleCounter++; -// if (delayUs < 0) { -// firmwareError(OBD_PCM_Processor_Fault, "Negative delayUs %s: %d", prefix, delayUs); -// return; -// } -// if (delayUs == 0) { -// callback(param); -// return; -// } bool alreadyLocked = true; if (!reentrantFlag) { // this would guard the queue and disable interrupts diff --git a/firmware/controllers/trigger/rpm_calculator.cpp b/firmware/controllers/trigger/rpm_calculator.cpp index a35679a67f..16089b9864 100644 --- a/firmware/controllers/trigger/rpm_calculator.cpp +++ b/firmware/controllers/trigger/rpm_calculator.cpp @@ -362,8 +362,6 @@ void initRpmCalculator(Logging *sharedLogger, Engine *engine) { } #if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__) -// tdcScheduler[0].name = "tdc0"; -// tdcScheduler[1].name = "tdc1"; addTriggerEventListener(tdcMarkCallback, "chart TDC mark", engine); #endif