trigger refactoring

This commit is contained in:
rusefi 2020-01-25 11:22:25 -05:00
parent 0f23faba28
commit af8383ae3a
3 changed files with 2 additions and 11 deletions

View File

@ -839,6 +839,6 @@ int getRusEfiVersion(void) {
if (initBootloader() != 0) if (initBootloader() != 0)
return 123; return 123;
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */ #endif /* EFI_BOOTLOADER_INCLUDE_CODE */
return 201200122; return 201200125;
} }
#endif /* EFI_UNIT_TEST */ #endif /* EFI_UNIT_TEST */

View File

@ -737,11 +737,6 @@ void initTriggerDecoderLogger(Logging *sharedLogger) {
logger = sharedLogger; logger = sharedLogger;
} }
void TriggerState::runtimeStatistics(efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX) {
UNUSED(nowNt);
// empty base implementation
}
void initTriggerDecoder(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void initTriggerDecoder(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
#if EFI_GPIO_HARDWARE #if EFI_GPIO_HARDWARE
enginePins.triggerDecoderErrorPin.initPin("trg_err", CONFIG(triggerErrorPin), enginePins.triggerDecoderErrorPin.initPin("trg_err", CONFIG(triggerErrorPin),

View File

@ -112,10 +112,6 @@ public:
void resetTriggerState(); void resetTriggerState();
void setShaftSynchronized(bool value); void setShaftSynchronized(bool value);
#if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT
virtual void runtimeStatistics(efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX);
#endif
/** /**
* this is start of real trigger cycle * this is start of real trigger cycle
* for virtual double trigger see timeAtVirtualZeroNt * for virtual double trigger see timeAtVirtualZeroNt
@ -164,7 +160,7 @@ public:
void movePreSynchTimestamps(DECLARE_ENGINE_PARAMETER_SIGNATURE); void movePreSynchTimestamps(DECLARE_ENGINE_PARAMETER_SIGNATURE);
float calculateInstantRpm(int *prevIndex, efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX); float calculateInstantRpm(int *prevIndex, efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX);
#if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT #if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT
void runtimeStatistics(efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX) override; void runtimeStatistics(efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX);
#endif #endif
/** /**
* Update timeOfLastEvent[] on every trigger event - even without synchronization * Update timeOfLastEvent[] on every trigger event - even without synchronization