only:hellen-honda-k
This commit is contained in:
rusefi 2023-03-09 17:05:46 -05:00
parent 4e83d4f0c2
commit ad00e6a0f4
4 changed files with 16 additions and 5 deletions

View File

@ -114,6 +114,9 @@ void setBoardDefaultConfiguration() {
engineConfiguration->mainRelayPin = H144_OUT_IO3;
engineConfiguration->malfunctionIndicatorPin = H144_OUT_IO7;
engineConfiguration->enableKline = true;
engineConfiguration->kLineBaudRate = 9600;
engineConfiguration->brakePedalPin = H144_IN_CAM;
engineConfiguration->acRelayPin = H144_LS_5;
engineConfiguration->tachOutputPin = H144_OUT_IO11;

View File

@ -30,6 +30,9 @@ void kLineThread(void*) {
void startKLine() {
#ifdef EFI_KLINE
if (!engineConfiguration->enableKline) {
return;
}
#if EFI_PROD_CODE
efiSetPadMode("K-Line UART RX", KLINE_SERIAL_DEVICE_RX, PAL_MODE_ALTERNATE(TS_SERIAL_AF));
efiSetPadMode("K-Line UART TX", KLINE_SERIAL_DEVICE_TX, PAL_MODE_ALTERNATE(TS_SERIAL_AF));
@ -55,16 +58,21 @@ void startKLine() {
void stopKLine() {
#ifdef EFI_KLINE
#if EFI_PROD_CODE
efiSetPadUnused(KLINE_SERIAL_DEVICE_RX);
efiSetPadUnused(KLINE_SERIAL_DEVICE_TX);
if (activeConfiguration.enableKline) {
efiSetPadUnused(KLINE_SERIAL_DEVICE_RX);
efiSetPadUnused(KLINE_SERIAL_DEVICE_TX);
sdStop(klDriver);
sdStop(klDriver);
}
#endif /* EFI_PROD_CODE */
#endif // EFI_KLINE
}
void initKLine() {
if (!engineConfiguration->enableKline) {
return;
}
#ifdef EFI_KLINE
startKLine();

View File

@ -459,7 +459,7 @@ injector_s injector
bit isForcedInduction;Does the vehicle have a turbo or supercharger?
bit useFordRedundantTps;On some Ford and Toyota vehicles one of the throttle sensors is not linear on the full range, i.e. in the specific range of the positions we effectively have only one sensor.
bit unusedVerbosePid1
bit enableKline
bit overrideTriggerGaps
bit enableFan1WithAc;Turn on this fan when AC is on.
bit enableFan2WithAc;Turn on this fan when AC is on.

View File

@ -3648,7 +3648,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "uartConsoleSerialSpeed", uartConsoleSerialSpeed
panel = auxSerial
panel = gpsReceiver @@if_ts_show_gps
field = enableKline, enableKline
dialog = monitoringSettings, "rusEFI Console Settings"
field = "Sensor Sniffer", sensorChartMode