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 0f148437cd..9abac18ab4 100644 --- a/firmware/config/boards/hellen/alphax-4K-GDI/board_configuration.cpp +++ b/firmware/config/boards/hellen/alphax-4K-GDI/board_configuration.cpp @@ -33,10 +33,13 @@ void setBoardDefaultConfiguration() { 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->camInputs[0] = Gpio::H144_IN_SENS1; // Digital Input 1 + engineConfiguration->camInputs[1] = Gpio::H144_IN_SENS2; // Digital Input 3 engineConfiguration->lowPressureFuel.hwChannel = H144_IN_AUX4; engineConfiguration->highPressureFuel.hwChannel = H144_IN_MAP3; + engineConfiguration->vvtPins[0] = Gpio::TLE9104_2_OUT_0; // intake + engineConfiguration->vvtPins[1] = Gpio::TLE9104_2_OUT_1; // exhaust engineConfiguration->map.sensor.hwChannel = H144_IN_MAP1; engineConfiguration->clt.adcChannel = H144_IN_CLT; diff --git a/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-A.yaml b/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-A.yaml index 057c3e89d1..961de13263 100644 --- a/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-A.yaml +++ b/firmware/config/boards/hellen/alphax-4K-GDI/connectors/gdi-A.yaml @@ -47,7 +47,7 @@ pins: - pin: 11A meta: H144_IGN_4 class: outputs - function: Smart Ignition 4 + function: Smart Ignition Coil 4 type: ign ts_name: ___ Ignition 4 color: orange/brown @@ -55,7 +55,7 @@ pins: - pin: 12A meta: H144_IGN_3 class: outputs - function: Smart Ignition 3 + function: Smart Ignition Coil 3 type: ign ts_name: ___ Ignition 3 color: blue @@ -63,7 +63,7 @@ pins: - pin: 13A meta: H144_IGN_2 class: outputs - function: Smart Ignition 2 + function: Smart Ignition Coil 2 type: ign ts_name: ___ Ignition 2 color: white @@ -71,7 +71,7 @@ pins: - pin: 14A meta: H144_IGN_1 class: outputs - function: Smart Ignition 1 + function: Smart Ignition Coil 1 type: ign ts_name: ___ Ignition 1 color: green 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 08729ada1d..57ed19d02f 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 @@ -43,7 +43,7 @@ pins: - pin: 6B meta: H144_IN_VBATT class: analog_inputs - function: ECU power supply + function: ECU power supply / Ignition Key Power ts_name: ___ Battery Sense type: 12v @@ -71,9 +71,12 @@ pins: - pin: 10B meta: H144_IN_CRANK class: event_inputs - function: VR 9924 Negative + function: Crank / VR 9924 Negative ts_name: ___ VR Negative + - pin: 11B + function: Crank / VR 9924 Positive + - pin: 19B function: PPS 1 type: av diff --git a/firmware/config/engines/hyundai.cpp b/firmware/config/engines/hyundai.cpp index 897789d038..3513c67639 100644 --- a/firmware/config/engines/hyundai.cpp +++ b/firmware/config/engines/hyundai.cpp @@ -91,6 +91,11 @@ void setHyundaiPb() { // page 98, Fuel System > Engine Control System > Rail Pressure Sensor (RPS) > Specifications engineConfiguration->highPressureFuel.value2 = 20'000; +#ifdef HW_HELLEN_4K_GDI + engineConfiguration->starterControlPin = Gpio::TLE9104_2_OUT_2; // vvt3 + +#endif + #ifdef HW_HELLEN_4CHAN engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_CAM; engineConfiguration->triggerInputPins[1] = Gpio::H144_IN_D_4;