auto-sync

This commit is contained in:
rusEfi 2015-01-27 20:06:57 -06:00
parent a717eaa136
commit 5f38455855
2 changed files with 23 additions and 19 deletions

View File

@ -36,7 +36,7 @@ void setSachs(engine_configuration_s *engineConfiguration) {
// Frankenstein analog input #1: PA1 adc1 // Frankenstein analog input #1: PA1 adc1
// Frankenstein analog input #2: PA3 adc3 // Frankenstein analog input #2: PA3 adc3 TPS
// Frankenstein analog input #3: PC3 adc13 // Frankenstein analog input #3: PC3 adc13
// Frankenstein analog input #4: PC1 adc11 // Frankenstein analog input #4: PC1 adc11
// Frankenstein analog input #5: PA0 adc0 // Frankenstein analog input #5: PA0 adc0

View File

@ -206,7 +206,8 @@ void printAllCallbacksHistogram(void) {
#endif #endif
} }
EXTERN_ENGINE; EXTERN_ENGINE
;
static void triggerShapeInfo(Engine *engine) { static void triggerShapeInfo(Engine *engine) {
#if EFI_PROD_CODE || EFI_SIMULATOR #if EFI_PROD_CODE || EFI_SIMULATOR
@ -229,15 +230,17 @@ void triggerInfo(Engine *engine) {
TriggerShape *ts = &engine->triggerShape; TriggerShape *ts = &engine->triggerShape;
scheduleMsg(logger, "Template %s (%d) trigger %s (%d)", scheduleMsg(logger, "Template %s (%d) trigger %s (%d)", getConfigurationName(engineConfiguration->engineType),
getConfigurationName(engineConfiguration->engineType), engineConfiguration->engineType, getTrigger_type_e(engineConfiguration->trigger.type),
engineConfiguration->engineType,
getTrigger_type_e(engineConfiguration->trigger.type),
engineConfiguration->trigger.type); engineConfiguration->trigger.type);
scheduleMsg(logger, "trigger event counters %d/%d/%d/%d", triggerCentral.getHwEventCounter(0), scheduleMsg(logger, "trigger#1 event counters %d/%d", triggerCentral.getHwEventCounter(0),
triggerCentral.getHwEventCounter(1), triggerCentral.getHwEventCounter(2), triggerCentral.getHwEventCounter(1));
triggerCentral.getHwEventCounter(3));
if (engineConfiguration->needSecondTriggerInput) {
scheduleMsg(logger, "trigger#2 event counters %d/%d", triggerCentral.getHwEventCounter(2),
triggerCentral.getHwEventCounter(3));
}
scheduleMsg(logger, "expected cycle events %d/%d/%d", ts->expectedEventCount[0], scheduleMsg(logger, "expected cycle events %d/%d/%d", ts->expectedEventCount[0],
engine->triggerShape.expectedEventCount[1], ts->expectedEventCount[2]); engine->triggerShape.expectedEventCount[1], ts->expectedEventCount[2]);
@ -266,21 +269,24 @@ void triggerInfo(Engine *engine) {
scheduleMsg(logger, "maxLockTime=%d / maxTriggerReentraint=%d", maxLockTime, maxTriggerReentraint); scheduleMsg(logger, "maxLockTime=%d / maxTriggerReentraint=%d", maxLockTime, maxTriggerReentraint);
scheduleMsg(logger, "maxEventQueueTime=%d", maxEventQueueTime); scheduleMsg(logger, "maxEventQueueTime=%d", maxEventQueueTime);
scheduleMsg(logger, "primary trigger input: %s", hwPortname(boardConfiguration->triggerInputPins[0]));
scheduleMsg(logger, "primary trigger simulator: %s %s freq=%d", scheduleMsg(logger, "primary trigger simulator: %s %s freq=%d",
hwPortname(boardConfiguration->triggerSimulatorPins[0]), hwPortname(boardConfiguration->triggerSimulatorPins[0]),
getPin_output_mode_e(boardConfiguration->triggerSimulatorPinModes[0]), getPin_output_mode_e(boardConfiguration->triggerSimulatorPinModes[0]),
boardConfiguration->triggerSimulatorFrequency); boardConfiguration->triggerSimulatorFrequency);
scheduleMsg(logger, "secondary trigger simulator: %s %s phase=%d",
hwPortname(boardConfiguration->triggerSimulatorPins[1]),
getPin_output_mode_e(boardConfiguration->triggerSimulatorPinModes[1]), triggerSignal.safe.phaseIndex); if (engineConfiguration->needSecondTriggerInput) {
scheduleMsg(logger, "3rd trigger simulator: %s %s", hwPortname(boardConfiguration->triggerSimulatorPins[2]), scheduleMsg(logger, "secondary trigger input: %s", hwPortname(boardConfiguration->triggerInputPins[1]));
getPin_output_mode_e(boardConfiguration->triggerSimulatorPinModes[2])); scheduleMsg(logger, "secondary trigger simulator: %s %s phase=%d",
hwPortname(boardConfiguration->triggerSimulatorPins[1]),
getPin_output_mode_e(boardConfiguration->triggerSimulatorPinModes[1]), triggerSignal.safe.phaseIndex);
}
// scheduleMsg(logger, "3rd trigger simulator: %s %s", hwPortname(boardConfiguration->triggerSimulatorPins[2]),
// getPin_output_mode_e(boardConfiguration->triggerSimulatorPinModes[2]));
scheduleMsg(logger, "trigger error extra LED: %s %s", hwPortname(boardConfiguration->triggerErrorPin), scheduleMsg(logger, "trigger error extra LED: %s %s", hwPortname(boardConfiguration->triggerErrorPin),
getPin_output_mode_e(boardConfiguration->triggerErrorPinMode)); getPin_output_mode_e(boardConfiguration->triggerErrorPinMode));
scheduleMsg(logger, "primary trigger input: %s", hwPortname(boardConfiguration->triggerInputPins[0]));
scheduleMsg(logger, "secondary trigger input: %s", hwPortname(boardConfiguration->triggerInputPins[1]));
scheduleMsg(logger, "primary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[0])); scheduleMsg(logger, "primary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[0]));
scheduleMsg(logger, "secondary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[1])); scheduleMsg(logger, "secondary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[1]));
@ -309,8 +315,6 @@ void initTriggerCentral(Logging *sharedLogger, Engine *engine) {
addConsoleAction("reset_running_counters", resetRunningTriggerCounters); addConsoleAction("reset_running_counters", resetRunningTriggerCounters);
#endif #endif
#if EFI_HISTOGRAMS #if EFI_HISTOGRAMS
initHistogram(&triggerCallback, "all callbacks"); initHistogram(&triggerCallback, "all callbacks");
#endif /* EFI_HISTOGRAMS */ #endif /* EFI_HISTOGRAMS */