From b2d084b8edb2d9042392682c4af979a07d34296b Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 27 Aug 2024 23:38:41 -0400 Subject: [PATCH] only:alphax-4k-gdi --- .../alphax-4K-GDI/board_configuration.cpp | 9 ++++- .../alphax-4K-GDI/connectors/gdi-B.yaml | 38 +++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/firmware/config/boards/hellen/alphax-4K-GDI/board_configuration.cpp b/firmware/config/boards/hellen/alphax-4K-GDI/board_configuration.cpp index a197702a9f..f9cd321ba2 100644 --- a/firmware/config/boards/hellen/alphax-4K-GDI/board_configuration.cpp +++ b/firmware/config/boards/hellen/alphax-4K-GDI/board_configuration.cpp @@ -32,6 +32,11 @@ void setBoardDefaultConfiguration() { engineConfiguration->fuelPumpPin = Gpio::TLE9104_1_OUT_1; engineConfiguration->fanPin = Gpio::TLE9104_1_OUT_2; + engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_CRANK; // max9924 is the safer default + engineConfiguration->camInputs[0] = Gpio::H144_IN_SENS1; + + engineConfiguration->lowPressureFuel.hwChannel = H144_IN_AUX4; + engineConfiguration->highPressureFuel.hwChannel = H144_IN_MAP3; engineConfiguration->map.sensor.hwChannel = H144_IN_MAP1; engineConfiguration->clt.adcChannel = H144_IN_CLT; @@ -207,8 +212,8 @@ static Gpio OUTPUTS[] = { Gpio::TLE9104_2_OUT_1, // 30B VVT2 Gpio::TLE9104_2_OUT_2, // 31B VVT3 Gpio::TLE9104_2_OUT_3, // 32B VVT4 - Gpio::TLE9104_3_OUT_0, - Gpio::TLE9104_3_OUT_1, + Gpio::TLE9104_3_OUT_0, // 33A Wastegate Solenoid + Gpio::TLE9104_3_OUT_1, // 34A AC Control }; int getBoardMetaOutputsCount() { diff --git a/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-B.yaml b/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-B.yaml index 271a028092..08729ada1d 100644 --- a/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-B.yaml +++ b/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-B.yaml @@ -68,6 +68,12 @@ pins: type: ls ts_name: ___ Fan 2 + - pin: 10B + meta: H144_IN_CRANK + class: event_inputs + function: VR 9924 Negative + ts_name: ___ VR Negative + - pin: 19B function: PPS 1 type: av @@ -84,10 +90,42 @@ pins: ts_name: ___ PPS2 color: orange/brown + - pin: 21B + id: [H144_IN_SENS1, H144_IN_SENS1] + class: [event_inputs, switch_inputs] + function: Digital Input 1 + ts_name: ___ Digital Input 1 + + - pin: 23B + function: Fuel Low Pressure + type: av + meta: H144_IN_AUX4 + class: analog_inputs + ts_name: ___ Fuel Low Pressure + + - pin: 24B + function: Fuel High Pressure + type: av + meta: H144_IN_MAP3 + class: analog_inputs + ts_name: ___ Fuel High Pressure + - pin: 26B function: Power GND type: gnd + - pin: 27B + id: [H144_IN_SENS2, H144_IN_SENS2] + class: [event_inputs, switch_inputs] + function: Digital Input 3 + ts_name: ___ Digital Input 3 + + - pin: 28B + id: [H144_IN_SENS3, H144_IN_SENS3] + class: [event_inputs, switch_inputs] + function: Digital Input 4 + ts_name: ___ Digital Input 4 + - pin: 29B id: TLE9104_2_OUT_0 class: outputs