| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | /* | |||
| 2 | * @file mercedes.cpp | |||
| 3 | * | |||
| 4 | * @date: Sep 17, 2021 | |||
| 5 | * @author Andrey Belomutskiy, (c) 2012-2021 | |||
| 6 | */ | |||
| 7 | ||||
| 8 | #include "pch.h" | |||
| 9 | #include "m111.h" | |||
| 10 | #if HW_HELLEN | |||
| 11 | #include "hellen_all_meta.h" | |||
| 12 | #endif // HW_HELLEN | |||
| 13 | ||||
| 14 | ✗ | void setHellenMercedes128_4_cyl() { | ||
| 15 | ✗ | setMercedesM111EngineConfiguration(); | ||
| 16 | #if HW_HELLEN | |||
| 17 | ✗ | engineConfiguration->injectionPins[0] = Gpio::H144_LS_7; | ||
| 18 | ✗ | engineConfiguration->injectionPins[1] = H176_LS_6; | ||
| 19 | ✗ | engineConfiguration->injectionPins[2] = H176_LS_8; | ||
| 20 | ✗ | engineConfiguration->injectionPins[3] = H176_LS_5; | ||
| 21 | ✗ | engineConfiguration->injectionPins[4] = Gpio::Unassigned; | ||
| 22 | ✗ | engineConfiguration->injectionPins[5] = Gpio::Unassigned; | ||
| 23 | ✗ | engineConfiguration->injectionPins[6] = Gpio::Unassigned; | ||
| 24 | ✗ | engineConfiguration->injectionPins[7] = Gpio::Unassigned; | ||
| 25 | #endif // HW_HELLEN | |||
| 26 | ✗ | } | ||
| 27 | ||||
| 28 | // is this M104 or M112 or both? | |||
| 29 | ✗ | void setHellenMercedes128_6_cyl() { | ||
| 30 | ✗ | engineConfiguration->cylindersCount = 6; | ||
| 31 | // 1-4-2-5-3-6 M104 | |||
| 32 | ✗ | engineConfiguration->firingOrder = FO_1_4_3_6_2_5; // M112 | ||
| 33 | ✗ | } | ||
| 34 | ||||
| 35 | // M113 | |||
| 36 | ✗ | void setHellenMercedes128_8_cyl() { | ||
| 37 | ✗ | engineConfiguration->cylindersCount = 8; | ||
| 38 | ✗ | engineConfiguration->firingOrder = FO_1_5_4_2_6_3_7_8; | ||
| 39 | ✗ | } | ||
| 40 |