From d7ca6f91400f90d091d1d935f965d7d63279222f Mon Sep 17 00:00:00 2001 From: rusEfi Date: Thu, 13 Nov 2014 13:03:15 -0600 Subject: [PATCH] auto-sync --- firmware/config/engines/bmw_e34.cpp | 3 +++ firmware/config/engines/mazda_miata.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/firmware/config/engines/bmw_e34.cpp b/firmware/config/engines/bmw_e34.cpp index 6ecb8357ac..0626394663 100644 --- a/firmware/config/engines/bmw_e34.cpp +++ b/firmware/config/engines/bmw_e34.cpp @@ -40,6 +40,7 @@ void setBmwE43(engine_configuration_s *engineConfiguration) { // 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 @@ -47,6 +48,8 @@ void setBmwE43(engine_configuration_s *engineConfiguration) { bc->ignitionPins[4] = GPIOC_9; // #5 bc->ignitionPins[5] = GPIO_UNASSIGNED; // #6 + bc->injectionPinMode = OM_INVERTED; + // emulating this 60-0 takes some resources, let's keep it slow by default // rpm 200 bc->triggerSimulatorFrequency = 200; diff --git a/firmware/config/engines/mazda_miata.cpp b/firmware/config/engines/mazda_miata.cpp index c85d3a074e..cff5238c88 100644 --- a/firmware/config/engines/mazda_miata.cpp +++ b/firmware/config/engines/mazda_miata.cpp @@ -302,6 +302,9 @@ void setMiata1994_d(engine_configuration_s *engineConfiguration, board_configura boardConfiguration->injectionPins[1] = GPIOE_2; boardConfiguration->injectionPins[2] = GPIOB_8; boardConfiguration->injectionPins[3] = GPIOB_7; + + // todo: add the diode? change idle valve logic? + boardConfiguration->idleValvePin = GPIO_UNASSIGNED; } void setMiata1994_s(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {