diff --git a/firmware/config/engines/bmw_e34.cpp b/firmware/config/engines/bmw_e34.cpp index 93f1d53b8d..9f2497459d 100644 --- a/firmware/config/engines/bmw_e34.cpp +++ b/firmware/config/engines/bmw_e34.cpp @@ -36,6 +36,9 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) { engineConfiguration->injectionMode = IM_SIMULTANEOUS; engineConfiguration->ignitionMode = IM_WASTED_SPARK; + boardConfiguration->triggerInputPins[0] = GPIOC_6; + boardConfiguration->triggerInputPins[1] = GPIOA_5; + engineConfiguration->ignMathCalculateAtIndex = 15; setConstantDwell(engineConfiguration, 3); // a bit shorter dwell @@ -55,34 +58,27 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) { // bc->isFastAdcEnabled = true; bc->ignitionPinMode = OM_INVERTED; - bc->ignitionPins[0] = GPIOC_7; // #1 - bc->ignitionPins[1] = GPIO_UNASSIGNED; // #2 - bc->ignitionPins[2] = GPIOE_4; // #3 - bc->ignitionPins[3] = GPIO_UNASSIGNED; // #4 - bc->ignitionPins[4] = GPIOC_9; // #5 - bc->ignitionPins[5] = GPIO_UNASSIGNED; // #6 + bc->ignitionPins[0] = GPIOB_8; // #1 + bc->ignitionPins[1] = GPIOE_2; // #2 + bc->ignitionPins[2] = GPIOE_3; // #3 + bc->ignitionPins[3] = GPIOE_4; // #4 + bc->ignitionPins[4] = GPIOE_5; // #5 + bc->ignitionPins[5] = GPIOE_6; // #6 bc->injectionPinMode = OM_INVERTED; - bc->injectionPins[0] = GPIOB_9; // #1 - bc->injectionPins[1] = GPIOB_8; // #2 - /** - * this is a relatively dirty performance hack: with unassigned pin we - * have less stuff to put into wave chart - */ - bc->injectionPins[2] = GPIO_UNASSIGNED; // #3 - bc->injectionPins[3] = GPIO_UNASSIGNED; // #4 - bc->injectionPins[4] = GPIO_UNASSIGNED; // #5 - bc->injectionPins[5] = GPIO_UNASSIGNED; // #6 + bc->injectionPins[0] = GPIOB_5; // #1 + bc->injectionPins[1] = GPIOB_6; // #2 + bc->injectionPins[2] = GPIOB_7; // #3 bc->triggerErrorPin = GPIOE_3; engineConfiguration->clutchUpPin = GPIOD_3; engineConfiguration->clutchUpPinMode = PI_PULLUP; - boardConfiguration->fuelPumpPin = GPIOC_13; + boardConfiguration->fuelPumpPin = GPIOD_4; - boardConfiguration->idleValvePin = GPIOB_10; + boardConfiguration->idleValvePin = GPIOC_14; boardConfiguration->idleValvePinMode = OM_INVERTED; boardConfiguration->idleSolenoidFrequency = 300; // set_idle_pwm 50 diff --git a/firmware/gen_config.bat b/firmware/gen_config.bat index 4969cbd5c1..a79a70cad3 100644 --- a/firmware/gen_config.bat +++ b/firmware/gen_config.bat @@ -1,2 +1,2 @@ -java -jar ../java_tools/ConfigDefinition.jar integration tunerstudio controllers\algo ../java_console/io/src +java -jar ../java_tools/ConfigDefinition.jar integration tunerstudio controllers\algo ../java_console diff --git a/firmware/integration/rusefi.xml b/firmware/integration/rusefi.xml new file mode 100644 index 0000000000..86423765e3 --- /dev/null +++ b/firmware/integration/rusefi.xml @@ -0,0 +1,67 @@ + + + + RUSEFI + 0 + RUSEFI0.1 + RUSEFI + 00 + US + rusEfi + rusEfi + ANY + MT + SH7055 + sti04 + 15288 + + + + +
+ +
+ + +
+ + + + +
+ +
+ + +
+ + + + +
+ +
+ + +
+ + + + +
+ +
+ + +
+ + + + + +
+ +
+ +
+
\ No newline at end of file