auto-sync
This commit is contained in:
parent
673c2930bc
commit
5366c18aef
|
@ -153,6 +153,8 @@ case TT_DODGE_RAM:
|
|||
return "TT_DODGE_RAM";
|
||||
case TT_UNUSED:
|
||||
return "TT_UNUSED";
|
||||
case TT_NISSAN:
|
||||
return "TT_NISSAN";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -149,7 +149,9 @@ typedef enum {
|
|||
|
||||
TT_36_2_2_2 = 23,
|
||||
|
||||
TT_UNUSED = 24, // this is used if we want to iterate over all trigger types
|
||||
TT_NISSAN = 24,
|
||||
|
||||
TT_UNUSED = 25, // this is used if we want to iterate over all trigger types
|
||||
|
||||
Force_4b_trigger_type = ENUM_32_BITS,
|
||||
} trigger_type_e;
|
||||
|
|
|
@ -8,6 +8,7 @@ TRIGGER_DECODERS_SRC_CPP = \
|
|||
$(PROJECT_DIR)/controllers/trigger/trigger_structure.cpp \
|
||||
$(PROJECT_DIR)/controllers/trigger/trigger_decoder.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_gm.cpp
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "trigger_bmw.h"
|
||||
#include "trigger_mitsubishi.h"
|
||||
#include "trigger_subaru.h"
|
||||
#include "trigger_nissan.h"
|
||||
#include "auto_generated_enums.h"
|
||||
#include "trigger_structure.h"
|
||||
#include "efiGpio.h"
|
||||
|
@ -478,6 +479,10 @@ void TriggerShape::initializeTriggerShape(Logging *logger DECLARE_ENGINE_PARAMET
|
|||
initialize36_2_2_2(triggerShape);
|
||||
break;
|
||||
|
||||
case TT_NISSAN:
|
||||
initializeNissan(triggerShape);
|
||||
break;
|
||||
|
||||
default:
|
||||
firmwareError("initializeTriggerShape() not implemented: %d", triggerConfig->type);
|
||||
;
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* @file trigger_nissan.cpp
|
||||
*
|
||||
* @date Sep 19, 2015
|
||||
* @author Andrey Belomutskiy, (c) 2012-2015
|
||||
*/
|
||||
|
||||
#include "trigger_nissan.h"
|
||||
|
||||
void initializeNissan(TriggerShape *s) {
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* @file trigger_nissan.h
|
||||
*
|
||||
* @date Sep 19, 2015
|
||||
* @author Andrey Belomutskiy, (c) 2012-2015
|
||||
*/
|
||||
|
||||
#ifndef CONTROLLERS_TRIGGER_TRIGGER_NISSAN_H_
|
||||
#define CONTROLLERS_TRIGGER_TRIGGER_NISSAN_H_
|
||||
|
||||
#include "trigger_structure.h"
|
||||
|
||||
void initializeNissan(TriggerShape *s);
|
||||
|
||||
#endif /* CONTROLLERS_TRIGGER_TRIGGER_NISSAN_H_ */
|
|
@ -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 20150915;
|
||||
return 20150919;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue