trigger signal debug pins - logic level output #2959
This commit is contained in:
parent
994230be65
commit
bb9835fe58
|
@ -46,6 +46,7 @@ WaveChart waveChart;
|
||||||
#endif /* EFI_ENGINE_SNIFFER */
|
#endif /* EFI_ENGINE_SNIFFER */
|
||||||
|
|
||||||
static scheduling_s debugToggleScheduling;
|
static scheduling_s debugToggleScheduling;
|
||||||
|
#define DEBUG_PIN_DELAY MS2NT(100)
|
||||||
|
|
||||||
trigger_central_s::trigger_central_s() : hwEventCounters() {
|
trigger_central_s::trigger_central_s() : hwEventCounters() {
|
||||||
}
|
}
|
||||||
|
@ -199,7 +200,7 @@ void hwHandleVvtCamSignal(trigger_value_e front, efitick_t nowNt, int index DECL
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
writePad("cam debug", CONFIG(camInputsDebug[index]), 1);
|
writePad("cam debug", CONFIG(camInputsDebug[index]), 1);
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
engine->executor.scheduleByTimestamp(&debugToggleScheduling, nowNt + MS2NT(100), &turnOffAllDebugFields);
|
engine->executor.scheduleByTimestamp(&debugToggleScheduling, nowNt + DEBUG_PIN_DELAY, &turnOffAllDebugFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONFIG(displayLogicLevelsInEngineSniffer) && isImportantFront) {
|
if (CONFIG(displayLogicLevelsInEngineSniffer) && isImportantFront) {
|
||||||
|
@ -416,6 +417,13 @@ void handleShaftSignal(int signalIndex, bool isRising, efitick_t timestamp DECLA
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CONFIG(triggerInputDebugPins[signalIndex]) != GPIO_UNASSIGNED) {
|
||||||
|
#if EFI_PROD_CODE
|
||||||
|
writePad("trigger debug", CONFIG(triggerInputDebugPins[signalIndex]), 1);
|
||||||
|
#endif /* EFI_PROD_CODE */
|
||||||
|
engine->executor.scheduleByTimestamp(&debugToggleScheduling, timestamp + DEBUG_PIN_DELAY, &turnOffAllDebugFields);
|
||||||
|
}
|
||||||
|
|
||||||
#if EFI_TOOTH_LOGGER
|
#if EFI_TOOTH_LOGGER
|
||||||
if (logLogicState) {
|
if (logLogicState) {
|
||||||
LogTriggerTooth(signal, timestamp PASS_ENGINE_PARAMETER_SUFFIX);
|
LogTriggerTooth(signal, timestamp PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
Loading…
Reference in New Issue