void initTriggerCentral(Engine *engine) { strcpy((char*) shaft_signal_msg_index, "x_"); #if EFI_WAVE_CHART initWaveChart(&waveChart); #endif /* EFI_WAVE_CHART */ #if EFI_PROD_CODE || EFI_SIMULATOR initLogging(&logger, "ShaftPosition"); addConsoleActionP("triggerinfo", (VoidPtr) triggerInfo, engine); addConsoleActionP("triggershapeinfo", (VoidPtr) triggerShapeInfo, engine); #endif #if EFI_HISTOGRAMS initHistogram(&triggerCallback, "all callbacks"); #endif /* EFI_HISTOGRAMS */ }
void initTriggerCentral(Logging *sharedLogger, Engine *engine) { logger = sharedLogger; strcpy((char*) shaft_signal_msg_index, "x_"); #if EFI_WAVE_CHART initWaveChart(&waveChart); #endif /* EFI_WAVE_CHART */ #if EFI_PROD_CODE || EFI_SIMULATOR addConsoleActionP("triggerinfo", (VoidPtr) triggerInfo, engine); addConsoleActionP("trigger_shape_info", (VoidPtr) triggerShapeInfo, engine); addConsoleAction("reset_trigger", resetRunningTriggerCounters); #endif #if EFI_HISTOGRAMS initHistogram(&triggerCallback, "all callbacks"); #endif /* EFI_HISTOGRAMS */ }