parent
12381ed0af
commit
59d51be749
|
@ -165,11 +165,9 @@ void setBoardDefaultConfiguration() {
|
|||
|
||||
// debug pad
|
||||
engineConfiguration->triggerSimulatorPins[0] = Gpio::D8;
|
||||
engineConfiguration->triggerSimulatorPinModes[0] = OM_DEFAULT;
|
||||
|
||||
// not used
|
||||
engineConfiguration->triggerSimulatorPins[1] = Gpio::Unassigned;
|
||||
engineConfiguration->triggerSimulatorPinModes[1] = OM_DEFAULT;
|
||||
engineConfiguration->vehicleSpeedSensorInputPin = Gpio::Unassigned;
|
||||
|
||||
engineConfiguration->is_enabled_spi_2 = false;
|
||||
|
|
|
@ -216,8 +216,6 @@ void setBoardDefaultConfiguration() {
|
|||
/* not used pins with testpads */
|
||||
engineConfiguration->triggerSimulatorPins[0] = Gpio::H2;
|
||||
engineConfiguration->triggerSimulatorPins[1] = Gpio::H3;
|
||||
engineConfiguration->triggerSimulatorPinModes[0] = OM_DEFAULT;
|
||||
engineConfiguration->triggerSimulatorPinModes[1] = OM_DEFAULT;
|
||||
|
||||
if (engineConfiguration->fuelAlgorithm == LM_REAL_MAF)
|
||||
setAlgorithm(LM_SPEED_DENSITY);
|
||||
|
|
|
@ -143,9 +143,6 @@ void setFordEscortGt() {
|
|||
setSingleCoilDwell();
|
||||
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
||||
|
||||
engineConfiguration->triggerSimulatorPinModes[0] = OM_OPENDRAIN;
|
||||
engineConfiguration->triggerSimulatorPinModes[1] = OM_OPENDRAIN;
|
||||
|
||||
// individual coils
|
||||
// W6 PC9
|
||||
// W8 PC7
|
||||
|
|
|
@ -98,9 +98,6 @@ static void commonMiataNa() {
|
|||
|
||||
engineConfiguration->cranking.baseFuel = 24;
|
||||
|
||||
engineConfiguration->triggerSimulatorPinModes[0] = OM_OPENDRAIN;
|
||||
engineConfiguration->triggerSimulatorPinModes[1] = OM_OPENDRAIN;
|
||||
|
||||
setCommonNTCSensor(&engineConfiguration->clt, 2700);
|
||||
setCommonNTCSensor(&engineConfiguration->iat, 2700);
|
||||
}
|
||||
|
|
|
@ -497,18 +497,6 @@ static void setTriggerInputPin(const char *indexStr, const char *pinName) {
|
|||
incrementGlobalConfigurationVersion();
|
||||
}
|
||||
|
||||
static void setTriggerSimulatorMode(const char *indexStr, const char *modeCode) {
|
||||
int index = atoi(indexStr);
|
||||
if (index < 0 || index >= TRIGGER_SIMULATOR_PIN_COUNT) {
|
||||
return;
|
||||
}
|
||||
int mode = atoi(modeCode);
|
||||
if (absI(mode) == ATOI_ERROR_CODE) {
|
||||
return;
|
||||
}
|
||||
engineConfiguration->triggerSimulatorPinModes[index] = (pin_output_mode_e) mode;
|
||||
}
|
||||
|
||||
static void setTriggerSimulatorPin(const char *indexStr, const char *pinName) {
|
||||
int index = atoi(indexStr);
|
||||
if (index < 0 || index >= TRIGGER_SIMULATOR_PIN_COUNT)
|
||||
|
@ -985,7 +973,6 @@ void initSettings(void) {
|
|||
|
||||
addConsoleActionI(CMD_ECU_UNLOCK, unlockEcu);
|
||||
|
||||
addConsoleActionSS("set_trigger_simulator_mode", setTriggerSimulatorMode);
|
||||
addConsoleActionS("set_fuel_pump_pin", setFuelPumpPin);
|
||||
addConsoleActionS("set_acrelay_pin", setACRelayPin);
|
||||
addConsoleActionS(CMD_ALTERNATOR_PIN, setAlternatorPin);
|
||||
|
|
Loading…
Reference in New Issue