From 4a2505e2d11e73e346890858d2e4fa54d5df3801 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sat, 14 Sep 2019 16:03:04 -0400 Subject: [PATCH] using MRE config for Nucleo --- firmware/config/boards/microrusefi/board_configuration.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/config/boards/microrusefi/board_configuration.cpp b/firmware/config/boards/microrusefi/board_configuration.cpp index 2fe90cec96..839c9adae0 100644 --- a/firmware/config/boards/microrusefi/board_configuration.cpp +++ b/firmware/config/boards/microrusefi/board_configuration.cpp @@ -49,7 +49,11 @@ static void setIgnitionPins() { static void setLedPins() { //engineConfiguration->atalErrorPin = GPIOE_3; // d21 = red +#ifdef EFI_COMMUNICATION_PIN + engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN; +#else engineConfiguration->communicationLedPin = GPIOE_2; // d23 = blue +#endif /* EFI_COMMUNICATION_PIN */ engineConfiguration->runningLedPin = GPIOE_4; // d22 = green boardConfiguration->triggerErrorPin = GPIOE_1; // d27 = orange } @@ -179,7 +183,7 @@ void setBoardConfigurationOverrides(void) { // MRE has a special main relay control low side pin // rusEfi firmware is totally not involved with main relay control on microRusEfi board // todo: maybe even set EFI_MAIN_RELAY_CONTROL to FALSE for MRE configuration - // TLE8888 half bridges (pushpull, lowside, or high-low) IN12 + // TLE8888 half bridges (pushpull, lowside, or high-low) TLE8888_IN11 / TLE8888_OUT21 // GPIOE_8: "35 - GP Out 1" boardConfiguration->fuelPumpPin = GPIOE_8;