From 1d284186234e72c82a751bb14902ad6a0c3d3b2f Mon Sep 17 00:00:00 2001 From: puff Date: Wed, 24 May 2017 00:28:38 +0300 Subject: [PATCH] removed conflicting pins, added vss pins, changed pin mode for ignition pins --- firmware/config/engines/rover_v8.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/firmware/config/engines/rover_v8.cpp b/firmware/config/engines/rover_v8.cpp index 35f0682da3..9b7e8223cd 100644 --- a/firmware/config/engines/rover_v8.cpp +++ b/firmware/config/engines/rover_v8.cpp @@ -57,6 +57,7 @@ void setRoverv8(DECLARE_ENGINE_PARAMETER_SIGNATURE) { // set ignition_mode 2 engineConfiguration->ignitionMode = IM_WASTED_SPARK; + boardConfiguration->ignitionPinMode = OM_INVERTED; // set_ignition_channels boardConfiguration->ignitionPins[0] = GPIOE_8; // Frankenstein: low side - out #x (?) @@ -86,9 +87,15 @@ void setRoverv8(DECLARE_ENGINE_PARAMETER_SIGNATURE) { boardConfiguration->injectionPins[6] = GPIOE_2; // Frankenstein: low side - out #7 boardConfiguration->injectionPins[7] = GPIOE_3; // Frankenstein: low side - out #8 - boardConfiguration->fuelPumpPin = GPIOE_0; // Frankenstein: low side - out #9 - boardConfiguration->malfunctionIndicatorPin = GPIOE_1; // Frankenstein: low side - out #10 + boardConfiguration->vehicleSpeedSensorInputPin = GPIOC_2; + + //GPIOE_0 AND GPIOE_1 are bad pins since they conflict with accelerometer + //no malfunction indicator pin needed, since we use CAN_BUS_MAZDA_RX8 + //boardConfiguration->fuelPumpPin = GPIOE_0; // Frankenstein: low side - out #9 + //boardConfiguration->malfunctionIndicatorPin = GPIOE_1; // Frankenstein: low side - out #10 + boardConfiguration->fuelPumpPin = GPIOB_8; // Frankenstein: low side - out #11 boardConfiguration->fuelPumpPinMode = OM_DEFAULT; + boardConfiguration->mainRelayPin = GPIOB_9; // Frankenstein: low side - out #12 boardConfiguration->triggerInputPins[0] = GPIOC_6; // 2G YEL/BLU boardConfiguration->triggerInputPins[1] = GPIOA_5; // 2E White CKP