From e0a5039e3d0b5b48bfea0ddc2009d95ef75a0ee0 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 1 Jan 2024 21:12:28 -0500 Subject: [PATCH] only:mre_f4 --- .../boards/microrusefi/board_configuration.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/firmware/config/boards/microrusefi/board_configuration.cpp b/firmware/config/boards/microrusefi/board_configuration.cpp index 931b5c67cb..06e405066f 100644 --- a/firmware/config/boards/microrusefi/board_configuration.cpp +++ b/firmware/config/boards/microrusefi/board_configuration.cpp @@ -213,10 +213,27 @@ MRE_INJ_4, MRE_LS_1, }; +static Gpio M111_OUTPUTS[] = { +MRE_INJ_1, // green +MRE_INJ_2, // white +MRE_INJ_3, // blue +MRE_INJ_4, // +}; + int getBoardMetaOutputsCount() { + if (engineConfiguration->engineType == engine_type_e::MRE_M111) { + return efi::size(M111_OUTPUTS); + } return efi::size(MRE_OUTPUTS); } Gpio* getBoardMetaOutputs() { + if (engineConfiguration->engineType == engine_type_e::MRE_M111) { + return M111_OUTPUTS; + } return MRE_OUTPUTS; } + +int getBoardMetaDcOutputsCount() { + return 1; +}