CJ125 unit-tests coverage #617
This commit is contained in:
parent
5d5c80a8a1
commit
0af290c381
|
@ -35,7 +35,6 @@
|
|||
#include "global.h"
|
||||
#include "engine.h"
|
||||
#include "settings.h"
|
||||
#include "pin_repository.h"
|
||||
#include "hardware.h"
|
||||
#include "rpm_calculator.h"
|
||||
#include "trigger_central.h"
|
||||
|
@ -45,6 +44,10 @@
|
|||
#include "efilib2.h"
|
||||
#include "engine_controller.h"
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
#include "pin_repository.h"
|
||||
#endif
|
||||
|
||||
#if EFI_HIP_9011 || defined(__DOXYGEN__)
|
||||
|
||||
static NamedOutputPin intHold(HIP_NAME);
|
||||
|
@ -252,7 +255,7 @@ static void intHoldCallback(trigger_event_e ckpEventType, uint32_t index DECLARE
|
|||
(schfunc_t) &startIntegration, NULL, &engine->rpmCalculator);
|
||||
#if EFI_PROD_CODE
|
||||
hipLastExecutionCount = lastExecutionCount;
|
||||
#endif
|
||||
#endif /* EFI_PROD_CODE */
|
||||
scheduleByAngle(rpm, &endTimer[structIndex], engineConfiguration->knockDetectionWindowEnd,
|
||||
(schfunc_t) &endIntegration,
|
||||
NULL, &engine->rpmCalculator);
|
||||
|
|
|
@ -590,6 +590,8 @@ bool cjHasAfrSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
|
||||
// used by DBG_CJ125
|
||||
void cjPostState(TunerStudioOutputChannels *tsOutputChannels) {
|
||||
tsOutputChannels->debugFloatField1 = heaterDuty;
|
||||
|
@ -602,6 +604,7 @@ void cjPostState(TunerStudioOutputChannels *tsOutputChannels) {
|
|||
tsOutputChannels->debugIntField1 = state;
|
||||
tsOutputChannels->debugIntField2 = diag;
|
||||
}
|
||||
#endif /* EFI_TUNER_STUDIO */
|
||||
|
||||
void initCJ125(Logging *sharedLogger) {
|
||||
logger = sharedLogger;
|
||||
|
|
|
@ -175,7 +175,9 @@ typedef enum {
|
|||
|
||||
|
||||
void initCJ125(Logging *shared);
|
||||
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
|
||||
void cjPostState(TunerStudioOutputChannels *tsOutputChannels);
|
||||
#endif
|
||||
float cjGetAfr(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
bool cjHasAfrSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void cj125defaultPinout();
|
||||
|
|
Loading…
Reference in New Issue