parent
f74de5b28a
commit
f1d16112df
|
@ -0,0 +1,5 @@
|
||||||
|
bit boardUseTachPullUp,"12v","5v"
|
||||||
|
bit boardUseTempPullUp,"With Pull Ups","Piggyback Mode"
|
||||||
|
bit boardUseCrankPullUp,"Hall","VR"
|
||||||
|
bit boardUse2stepPullDown,"With Pull Down","With Pull Up"
|
||||||
|
bit boardUseCamPullDown,"With Pull Down","With Pull Up"
|
|
@ -66,12 +66,12 @@ void boardInitHardware() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration*/) {
|
void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration*/) {
|
||||||
alphaTachPullUp.setValue(engineConfiguration->boardUseTachPullUp);
|
alphaTachPullUp.setValue(config->boardUseTachPullUp);
|
||||||
alphaTempPullUp.setValue(engineConfiguration->boardUseTempPullUp);
|
alphaTempPullUp.setValue(config->boardUseTempPullUp);
|
||||||
alphaCrankPPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
|
alphaCrankPPullUp.setValue(config->boardUseCrankPullUp);
|
||||||
alphaCrankNPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
|
alphaCrankNPullUp.setValue(config->boardUseCrankPullUp);
|
||||||
alpha2stepPullDown.setValue(engineConfiguration->boardUse2stepPullDown);
|
alpha2stepPullDown.setValue(config->boardUse2stepPullDown);
|
||||||
alphaCamPullDown.setValue(engineConfiguration->boardUseCamPullDown);
|
alphaCamPullDown.setValue(config->boardUseCamPullDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ void setBoardDefaultConfiguration() {
|
||||||
engineConfiguration->baroSensor.hwChannel = H144_IN_MAP3; // On-board MAP
|
engineConfiguration->baroSensor.hwChannel = H144_IN_MAP3; // On-board MAP
|
||||||
}
|
}
|
||||||
|
|
||||||
engineConfiguration->boardUseTempPullUp = true;
|
config->boardUseTempPullUp = true;
|
||||||
|
|
||||||
engineConfiguration->fuelPumpPin = Gpio::H144_OUT_PWM2;
|
engineConfiguration->fuelPumpPin = Gpio::H144_OUT_PWM2;
|
||||||
engineConfiguration->fanPin = Gpio::H144_OUT_PWM4;
|
engineConfiguration->fanPin = Gpio::H144_OUT_PWM4;
|
||||||
|
|
|
@ -574,12 +574,6 @@ static void enableOrDisable(const char *param, bool isEnabled) {
|
||||||
engineConfiguration->verboseKLine = isEnabled;
|
engineConfiguration->verboseKLine = isEnabled;
|
||||||
} else if (strEqualCaseInsensitive(param, "stepperidle")) {
|
} else if (strEqualCaseInsensitive(param, "stepperidle")) {
|
||||||
engineConfiguration->useStepperIdle = isEnabled;
|
engineConfiguration->useStepperIdle = isEnabled;
|
||||||
} else if (strEqualCaseInsensitive(param, "boardUseTempPullUp")) {
|
|
||||||
engineConfiguration->boardUseTempPullUp = isEnabled;
|
|
||||||
incrementGlobalConfigurationVersion();
|
|
||||||
} else if (strEqualCaseInsensitive(param, "boardUseTachPullUp")) {
|
|
||||||
engineConfiguration->boardUseTachPullUp = isEnabled;
|
|
||||||
incrementGlobalConfigurationVersion();
|
|
||||||
} else if (strEqualCaseInsensitive(param, "two_wire_wasted_spark")) {
|
} else if (strEqualCaseInsensitive(param, "two_wire_wasted_spark")) {
|
||||||
engineConfiguration->twoWireBatchIgnition = isEnabled;
|
engineConfiguration->twoWireBatchIgnition = isEnabled;
|
||||||
incrementGlobalConfigurationVersion();
|
incrementGlobalConfigurationVersion();
|
||||||
|
|
Loading…
Reference in New Issue