mirror of https://github.com/rusefi/rusefi.git
MRE is getting closer!
This commit is contained in:
parent
8f432dc88b
commit
2120aff829
|
@ -767,8 +767,8 @@ case ROVER_V8:
|
|||
return "ROVER_V8";
|
||||
case SACHS:
|
||||
return "SACHS";
|
||||
case SATURN_ION_2004:
|
||||
return "SATURN_ION_2004";
|
||||
case MRE_MIATA_NA6:
|
||||
return "MRE_MIATA_NA6";
|
||||
case SUBARUEJ20G_DEFAULTS:
|
||||
return "SUBARUEJ20G_DEFAULTS";
|
||||
case SUBARU_2003_WRX:
|
||||
|
|
|
@ -1051,7 +1051,7 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN
|
|||
setDefaultFrankensoConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case SATURN_ION_2004:
|
||||
case MRE_MIATA_NA6:
|
||||
case ACURA_RSX:
|
||||
case MINI_COOPER_R50:
|
||||
case GM_2_2:
|
||||
|
|
|
@ -75,7 +75,7 @@ typedef enum {
|
|||
|
||||
MAZDA_323 = 11,
|
||||
|
||||
SATURN_ION_2004 = 12,
|
||||
MRE_MIATA_NA6 = 12,
|
||||
|
||||
MINI_COOPER_R50 = 13,
|
||||
|
||||
|
|
|
@ -157,8 +157,8 @@ const char* getConfigurationName(engine_type_e engineType) {
|
|||
return "MiataNB1";
|
||||
case MAZDA_323:
|
||||
return "M323";
|
||||
case SATURN_ION_2004:
|
||||
return "Saturn Ion";
|
||||
case MRE_MIATA_NA6:
|
||||
return "MRE Miata 1.6";
|
||||
case MINI_COOPER_R50:
|
||||
return "CoopR50";
|
||||
case FORD_ESCORT_GT:
|
||||
|
@ -649,6 +649,12 @@ static void setPotSpi(int spi) {
|
|||
boardConfiguration->digitalPotentiometerSpiDevice = (spi_device_e) spi;
|
||||
}
|
||||
|
||||
/**
|
||||
* For example:
|
||||
* set_ignition_pin 1 PD7
|
||||
* todo: this method counts index from 1 while at least 'set_trigger_input_pin' counts from 0.
|
||||
* todo: make things consistent
|
||||
*/
|
||||
static void setIgnitionPin(const char *indexStr, const char *pinName) {
|
||||
int index = atoi(indexStr) - 1; // convert from human index into software index
|
||||
if (index < 0 || index >= IGNITION_PIN_COUNT)
|
||||
|
@ -711,6 +717,12 @@ static void setInjectionPin(const char *indexStr, const char *pinName) {
|
|||
incrementGlobalConfigurationVersion(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
}
|
||||
|
||||
/**
|
||||
* For example:
|
||||
* set_trigger_input_pin 0 PA5
|
||||
* todo: this method counts index from 0 while at least 'set_ignition_pin' counts from 1.
|
||||
* todo: make things consistent
|
||||
*/
|
||||
static void setTriggerInputPin(const char *indexStr, const char *pinName) {
|
||||
int index = atoi(indexStr);
|
||||
if (index < 0 || index > 2)
|
||||
|
|
Loading…
Reference in New Issue