auto-sync
This commit is contained in:
parent
71adc66ce5
commit
311fcd4a88
|
@ -13,6 +13,7 @@
|
|||
#include "engine.h"
|
||||
#include "engine_state.h"
|
||||
#include "efiGpio.h"
|
||||
#include "trigger_central.h"
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
#include "injector_central.h"
|
||||
|
@ -24,7 +25,8 @@
|
|||
static Logging logger;
|
||||
#endif
|
||||
|
||||
EXTERN_ENGINE;
|
||||
EXTERN_ENGINE
|
||||
;
|
||||
|
||||
/**
|
||||
* We are executing these heavy (logarithm) methods from outside the trigger callbacks for performance reasons.
|
||||
|
@ -94,6 +96,9 @@ void Engine::watchdog() {
|
|||
isSpinning = false;
|
||||
#if EFI_PROD_CODE || EFI_SIMULATOR
|
||||
scheduleMsg(&logger, "engine has STOPPED");
|
||||
if (engineConfiguration->isPrintTriggerSynchDetails) {
|
||||
triggerInfo(engine);
|
||||
}
|
||||
#endif
|
||||
|
||||
stopPins();
|
||||
|
|
|
@ -225,7 +225,7 @@ extern PwmConfig triggerSignal;
|
|||
extern uint32_t maxLockTime;
|
||||
extern uint32_t maxEventQueueTime;
|
||||
|
||||
static void triggerInfo(Engine *engine) {
|
||||
void triggerInfo(Engine *engine) {
|
||||
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
|
||||
|
||||
trigger_shape_s *ts = &engine->triggerShape;
|
||||
|
|
|
@ -35,6 +35,7 @@ private:
|
|||
};
|
||||
#endif
|
||||
|
||||
void triggerInfo(Engine *engine);
|
||||
uint64_t getCrankEventCounter(void);
|
||||
uint64_t getStartOfRevolutionIndex(void);
|
||||
void hwHandleShaftSignal(trigger_event_e signal);
|
||||
|
|
Loading…
Reference in New Issue