set_cj125_cs_pin & set_cj125_heater_pin

This commit is contained in:
rusefi 2020-04-08 22:37:00 -04:00
parent 5e00b3ac17
commit e673281a9d
2 changed files with 14 additions and 2 deletions

View File

@ -679,6 +679,14 @@ static void setMainRelayPin(const char *pinName) {
setIndividualPin(pinName, &engineConfiguration->mainRelayPin, "main relay"); setIndividualPin(pinName, &engineConfiguration->mainRelayPin, "main relay");
} }
static void setCj125CsPin(const char *pinName) {
setIndividualPin(pinName, &engineConfiguration->starterRelayDisablePin, "starter disable relay");
}
static void setCj125HeaterPin(const char *pinName) {
setIndividualPin(pinName, &engineConfiguration->wboHeaterPin, "cj125 heater");
}
static void setStarterRelayPin(const char *pinName) { static void setStarterRelayPin(const char *pinName) {
setIndividualPin(pinName, &engineConfiguration->starterRelayDisablePin, "starter disable relay"); setIndividualPin(pinName, &engineConfiguration->starterRelayDisablePin, "starter disable relay");
} }
@ -904,6 +912,8 @@ static void enableOrDisable(const char *param, bool isEnabled) {
engineConfiguration->useConstantDwellDuringCranking = isEnabled; engineConfiguration->useConstantDwellDuringCranking = isEnabled;
} else if (strEqualCaseInsensitive(param, "cj125")) { } else if (strEqualCaseInsensitive(param, "cj125")) {
engineConfiguration->isCJ125Enabled = isEnabled; engineConfiguration->isCJ125Enabled = isEnabled;
} else if (strEqualCaseInsensitive(param, "cj125verbose")) {
engineConfiguration->isCJ125Verbose = isEnabled;
} else if (strEqualCaseInsensitive(param, "engine_sniffer")) { } else if (strEqualCaseInsensitive(param, "engine_sniffer")) {
engineConfiguration->isEngineChartEnabled = isEnabled; engineConfiguration->isEngineChartEnabled = isEnabled;
} else if (strEqualCaseInsensitive(param, "step1limimter")) { } else if (strEqualCaseInsensitive(param, "step1limimter")) {
@ -1429,6 +1439,8 @@ void initSettings(void) {
addConsoleActionS("set_idle_pin", setIdlePin); addConsoleActionS("set_idle_pin", setIdlePin);
addConsoleActionS("set_main_relay_pin", setMainRelayPin); addConsoleActionS("set_main_relay_pin", setMainRelayPin);
addConsoleActionS("set_starter_relay_pin", setStarterRelayPin); addConsoleActionS("set_starter_relay_pin", setStarterRelayPin);
addConsoleActionS("set_cj125_cs_pin", setCj125CsPin);
addConsoleActionS("set_cj125_heater_pin", setCj125HeaterPin);
addConsoleActionS("set_can_rx_pin", setCanRxPin); addConsoleActionS("set_can_rx_pin", setCanRxPin);
addConsoleActionS("set_can_tx_pin", setCanTxPin); addConsoleActionS("set_can_tx_pin", setCanTxPin);

View File

@ -568,8 +568,8 @@ switch_input_pin_e clutchDownPin;some cars have a switch to indicate that clutch
brain_pin_e[DIGIPOT_COUNT iterate] digitalPotentiometerChipSelect; brain_pin_e[DIGIPOT_COUNT iterate] digitalPotentiometerChipSelect;
pin_output_mode_e electronicThrottlePin1Mode; pin_output_mode_e electronicThrottlePin1Mode;
brain_pin_e wboHeaterPin; brain_pin_e wboHeaterPin;set_cj125_heater_pin XXX
brain_pin_e cj125CsPin; brain_pin_e cj125CsPin;set_cj125_cs_pin XXX
spi_device_e max31855spiDevice; spi_device_e max31855spiDevice;
brain_pin_e debugTriggerSync; brain_pin_e debugTriggerSync;