auto-sync

This commit is contained in:
rusEfi 2015-12-14 21:01:30 -05:00
parent b0bf4a7c08
commit a0639bc668
6 changed files with 22 additions and 2 deletions

View File

@ -159,6 +159,8 @@ case TT_UNUSED:
return "TT_UNUSED";
case TT_NISSAN:
return "TT_NISSAN";
case TT_2JZ:
return "TT_2JZ";
}
return NULL;
}

View File

@ -155,7 +155,9 @@ typedef enum {
TT_NISSAN = 24,
TT_UNUSED = 25, // this is used if we want to iterate over all trigger types
TT_2JZ = 25,
TT_UNUSED = 26, // this is used if we want to iterate over all trigger types
Force_4b_trigger_type = ENUM_32_BITS,
} trigger_type_e;

View File

@ -11,6 +11,7 @@ TRIGGER_DECODERS_SRC_CPP = \
$(PROJECT_DIR)/controllers/trigger/trigger_mitsubishi.cpp \
$(PROJECT_DIR)/controllers/trigger/trigger_nissan.cpp \
$(PROJECT_DIR)/controllers/trigger/trigger_subaru.cpp \
$(PROJECT_DIR)/controllers/trigger/trigger_toyota.cpp \
$(PROJECT_DIR)/controllers/trigger/trigger_gm.cpp
TRIGGER_SRC_CPP = \

View File

@ -32,6 +32,7 @@
#include "trigger_mitsubishi.h"
#include "trigger_subaru.h"
#include "trigger_nissan.h"
#include "trigger_toyota.h"
#include "auto_generated_enums.h"
#include "trigger_structure.h"
#include "efiGpio.h"
@ -500,6 +501,10 @@ void TriggerShape::initializeTriggerShape(Logging *logger DECLARE_ENGINE_PARAMET
initialize36_2_2_2(triggerShape);
break;
case TT_2JZ:
initialize2jzGE(triggerShape);
break;
case TT_NISSAN:
initializeNissan(triggerShape);
break;

View File

@ -9,4 +9,14 @@
#include "trigger_toyota.h"
EXTERN_ENGINE;
void initialize2jzGE(TriggerShape *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, false);
initializeSkippedToothTriggerShapeExt(s, 3, 0,
FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = false;
}

View File

@ -275,5 +275,5 @@ int getRusEfiVersion(void) {
return 123; // this is here to make the compiler happy about the unused array
if (UNUSED_CCM_SIZE[0] * 0 != 0)
return 3211; // this is here to make the compiler happy about the unused array
return 20151208;
return 20151214;
}