docs
This commit is contained in:
parent
8d111fbd98
commit
eda2f08c38
|
@ -60,17 +60,12 @@ Executor::Executor() {
|
||||||
queue.setLateDelay(US2NT(100));
|
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 Executor::scheduleByTimestamp(scheduling_s *scheduling, efitimeus_t timeUs, schfunc_t callback,
|
||||||
void *param) {
|
void *param) {
|
||||||
scheduleCounter++;
|
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;
|
bool alreadyLocked = true;
|
||||||
if (!reentrantFlag) {
|
if (!reentrantFlag) {
|
||||||
// this would guard the queue and disable interrupts
|
// this would guard the queue and disable interrupts
|
||||||
|
|
|
@ -362,8 +362,6 @@ void initRpmCalculator(Logging *sharedLogger, Engine *engine) {
|
||||||
}
|
}
|
||||||
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
|
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
|
||||||
|
|
||||||
// tdcScheduler[0].name = "tdc0";
|
|
||||||
// tdcScheduler[1].name = "tdc1";
|
|
||||||
addTriggerEventListener(tdcMarkCallback, "chart TDC mark", engine);
|
addTriggerEventListener(tdcMarkCallback, "chart TDC mark", engine);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue