so much bad copy-pasta
This commit is contained in:
parent
fe3d48b4a3
commit
6ef5fef590
|
@ -25,11 +25,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = Gpio::Unassigned;
|
||||
engineConfiguration->injectionPins[3] = Gpio::Unassigned;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::Unassigned;
|
||||
|
@ -44,11 +39,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = H144_IGN_2;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::Unassigned;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,11 +31,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = H144_LS_3;
|
||||
engineConfiguration->injectionPins[3] = H144_LS_4;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::Unassigned;
|
||||
|
@ -70,11 +65,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = H144_IGN_3;
|
||||
engineConfiguration->ignitionPins[3] = H144_IGN_4;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,11 +31,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = H144_LS_3;
|
||||
engineConfiguration->injectionPins[3] = H144_LS_4;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::Unassigned;
|
||||
|
@ -70,11 +65,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = H144_IGN_3;
|
||||
engineConfiguration->ignitionPins[3] = H144_IGN_4;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,11 +20,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = Gpio::Unassigned;
|
||||
engineConfiguration->injectionPins[3] = Gpio::Unassigned;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::Unassigned;
|
||||
|
@ -39,11 +34,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::Unassigned;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::Unassigned;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,11 +23,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[6] = H144_LS_7;
|
||||
engineConfiguration->injectionPins[7] = H144_LS_8;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 8; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::C4; // Clutch switch input
|
||||
|
@ -46,11 +41,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[6] = H144_IGN_7;
|
||||
engineConfiguration->ignitionPins[7] = H144_IGN_8;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 8; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,11 +19,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = H144_LS_3;
|
||||
engineConfiguration->injectionPins[3] = H144_LS_4;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::C4; // Clutch switch input
|
||||
|
@ -38,11 +33,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = H144_IGN_2;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::Unassigned;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,11 +23,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[4] = H144_LS_5;
|
||||
engineConfiguration->injectionPins[5] = H144_LS_6;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 6; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -39,11 +34,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[4] = H144_IGN_5;
|
||||
engineConfiguration->ignitionPins[5] = H144_IGN_6;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 6; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,11 +21,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = H176_LS_3; // 97 - INJ_3
|
||||
engineConfiguration->injectionPins[3] = H176_LS_4;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -35,16 +30,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::E4; // 111 - IGN_3
|
||||
engineConfiguration->ignitionPins[3] = Gpio::E3; // 94 - IGN_4
|
||||
|
||||
//engineConfiguration->ignitionPins[4] = Gpio::E2;
|
||||
//engineConfiguration->ignitionPins[5] = Gpio::I5;
|
||||
//engineConfiguration->ignitionPins[6] = Gpio::I6;
|
||||
//engineConfiguration->ignitionPins[7] = Gpio::I7;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,11 +26,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[6] = H176_LS_7;
|
||||
engineConfiguration->injectionPins[7] = H176_LS_8;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 8; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -44,11 +39,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[6] = Gpio::I6;
|
||||
engineConfiguration->ignitionPins[7] = Gpio::I7;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 8; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,12 +20,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = H144_LS_3;
|
||||
engineConfiguration->injectionPins[3] = H144_LS_4;
|
||||
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -35,11 +29,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::E4;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::E3;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,11 +19,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = Gpio::D11;
|
||||
engineConfiguration->injectionPins[3] = Gpio::D10;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::C4; // Clutch switch input
|
||||
|
@ -38,16 +33,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::E5; // 3I - IGN_2 (2&3)
|
||||
engineConfiguration->ignitionPins[3] = Gpio::Unassigned; // Gpio::E3
|
||||
|
||||
//engineConfiguration->ignitionPins[4] = Gpio::E2;
|
||||
//engineConfiguration->ignitionPins[5] = Gpio::I5;
|
||||
//engineConfiguration->ignitionPins[6] = Gpio::I6;
|
||||
//engineConfiguration->ignitionPins[7] = Gpio::I7;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,16 +19,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = Gpio::D11;
|
||||
engineConfiguration->injectionPins[3] = Gpio::D10;
|
||||
|
||||
//engineConfiguration->injectionPins[4] = Gpio::D9;
|
||||
//engineConfiguration->injectionPins[5] = Gpio::F12;
|
||||
//engineConfiguration->injectionPins[6] = Gpio::F13;
|
||||
//engineConfiguration->injectionPins[7] = Gpio::F14;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -38,16 +28,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::E5; // 3I - IGN_2 (2&3)
|
||||
engineConfiguration->ignitionPins[3] = Gpio::Unassigned; // Gpio::E3
|
||||
|
||||
//engineConfiguration->ignitionPins[4] = Gpio::E2;
|
||||
//engineConfiguration->ignitionPins[5] = Gpio::I5;
|
||||
//engineConfiguration->ignitionPins[6] = Gpio::I6;
|
||||
//engineConfiguration->ignitionPins[7] = Gpio::I7;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,16 +19,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = Gpio::D11;
|
||||
engineConfiguration->injectionPins[3] = Gpio::D10;
|
||||
|
||||
//engineConfiguration->injectionPins[4] = Gpio::D9;
|
||||
//engineConfiguration->injectionPins[5] = Gpio::F12;
|
||||
//engineConfiguration->injectionPins[6] = Gpio::F13;
|
||||
//engineConfiguration->injectionPins[7] = Gpio::F14;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -38,11 +28,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::E4;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::E3;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,11 +22,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[4] = H144_LS_5;
|
||||
engineConfiguration->injectionPins[5] = H144_LS_6;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 6; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -38,11 +33,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[4] = Gpio::E2;
|
||||
engineConfiguration->ignitionPins[5] = Gpio::B8;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 6; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,11 +19,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = H144_LS_3;
|
||||
engineConfiguration->injectionPins[3] = H144_LS_4;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->clutchDownPin = Gpio::C4; // Clutch switch input
|
||||
|
@ -38,11 +33,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = H144_IGN_2;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::Unassigned;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,11 +27,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = MRE_INJ_3;
|
||||
engineConfiguration->injectionPins[3] = MRE_INJ_4;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -42,11 +37,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::D2;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::D1;
|
||||
|
||||
// disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,11 +11,6 @@ static void setInjectorPins() {
|
|||
engineConfiguration->injectionPins[2] = Gpio::D10;
|
||||
engineConfiguration->injectionPins[3] = Gpio::D11;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT;i++) {
|
||||
engineConfiguration->injectionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->injectionPinMode = OM_OPENDRAIN;
|
||||
}
|
||||
|
||||
|
@ -25,11 +20,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPins[2] = Gpio::D15;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::D14;
|
||||
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
engineConfiguration->ignitionPinMode = OM_OPENDRAIN;
|
||||
}
|
||||
|
||||
|
|
|
@ -140,10 +140,6 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->ignitionPins[1] = Gpio::D3;
|
||||
engineConfiguration->ignitionPins[2] = Gpio::D2;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::D1;
|
||||
// Disable remainder
|
||||
for (int i = 4; i < MAX_CYLINDER_COUNT; i++) {
|
||||
engineConfiguration->ignitionPins[i] = Gpio::Unassigned;
|
||||
}
|
||||
|
||||
// Board-specific scaling values to convert ADC fraction to Volts.
|
||||
// It is good practice to make the math explicit, but still simple.
|
||||
|
|
Loading…
Reference in New Issue