auto-sync

This commit is contained in:
rusEfi 2015-12-30 16:02:18 -05:00
parent 7c62c5d3d3
commit be5a53c92c
8 changed files with 58 additions and 5 deletions

View File

@ -101,7 +101,7 @@ void setCustomEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
boardConfiguration->injectionPins[11] = GPIO_UNASSIGNED;
boardConfiguration->ignitionPins[0] = GPIOE_14;
boardConfiguration->ignitionPins[1] = GPIO_UNASSIGNED; // todo: update this value
boardConfiguration->ignitionPins[1] = GPIOC_9;
boardConfiguration->ignitionPins[2] = GPIOC_7;
boardConfiguration->ignitionPins[3] = GPIO_UNASSIGNED; // todo: update this value
#endif

View File

@ -32,5 +32,6 @@ ENGINES_SRC_CPP = $(PROJECT_DIR)/config/engines/ford_aspire.cpp \
$(PROJECT_DIR)/config/engines/chevrolet_camaro_4.cpp \
$(PROJECT_DIR)/config/engines/suzuki_vitara.cpp \
$(PROJECT_DIR)/config/engines/daihatsu.cpp \
$(PROJECT_DIR)/config/engines/chevrolet_c20_1973.cpp
$(PROJECT_DIR)/config/engines/chevrolet_c20_1973.cpp \
$(PROJECT_DIR)/config/engines/toyota_jzs147.cpp

View File

@ -0,0 +1,30 @@
/*
* @file toyota_jzs147.cpp
*
* toyota aristo
* https://en.wikipedia.org/wiki/Lexus_GS
* http://rusefi.com/forum/viewtopic.php?f=15&t=969
*
* set_engine_type 38
*
* @date Dec 30, 2015
* @author Andrey Belomutskiy, (c) 2012-2015
*/
#include "toyota_jzs147.h"
EXTERN_ENGINE;
void setToyota_jzs147EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->specs.displacement = 3.0;
engineConfiguration->specs.cylindersCount = 6;
engineConfiguration->specs.firingOrder = FO_1_THEN_5_THEN_3_THEN_6_THEN_2_THEN_4;
setOperationMode(engineConfiguration, FOUR_STROKE_CAM_SENSOR);
engineConfiguration->trigger.type = TT_2JZ;
}

View File

@ -0,0 +1,15 @@
/*
* @file toyota_jzs147.h
*
* @date Dec 30, 2015
* @author Andrey Belomutskiy, (c) 2012-2015
*/
#ifndef CONFIG_ENGINES_TOYOTA_JZS147_H_
#define CONFIG_ENGINES_TOYOTA_JZS147_H_
#include "engine.h"
void setToyota_jzs147EngineConfiguration(DECLARE_ENGINE_PARAMETER_F);
#endif /* CONFIG_ENGINES_TOYOTA_JZS147_H_ */

View File

@ -36,6 +36,8 @@ case CAMARO_4:
return "CAMARO_4";
case CHEVY_C20_1973:
return "CHEVY C20";
case TOYOTA_JZS147:
return "TOYOTA_JZS147";
case GM_2_2:
return "GM_2_2";
case DODGE_RAM:

View File

@ -67,6 +67,7 @@
#include "chevrolet_camaro_4.h"
#include "suzuki_vitara.h"
#include "chevrolet_c20_1973.h"
#include "toyota_jzs147.h"
EXTERN_ENGINE;
@ -808,7 +809,9 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN
case CHEVY_C20_1973:
set1973c20(PASS_ENGINE_PARAMETER_F);
break;
case TOYOTA_JZS147:
setToyota_jzs147EngineConfiguration(PASS_ENGINE_PARAMETER_F);
break;
default:
warning(OBD_PCM_Processor_Fault, "Unexpected engine type: %d", engineType);

View File

@ -111,7 +111,9 @@ typedef enum {
CHEVY_C20_1973 = 37,
ET_UNUSED = 38,
TOYOTA_JZS147 = 38,
ET_UNUSED = 39,
Force_4b_engine_type = ENUM_32_BITS,
} engine_type_e;

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 20151227;
return 20151230;
}