From ec7a742396204f0572cee611596d090351e0ba0e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 30 Oct 2023 20:54:31 -0400 Subject: [PATCH] hd only:proteus_f4 --- .../boards/proteus/board_configuration.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/firmware/config/boards/proteus/board_configuration.cpp b/firmware/config/boards/proteus/board_configuration.cpp index 3823831f9c..93d5e85a1b 100644 --- a/firmware/config/boards/proteus/board_configuration.cpp +++ b/firmware/config/boards/proteus/board_configuration.cpp @@ -212,10 +212,20 @@ static Gpio PROTEUS_CANAM_OUTPUTS[] = { Gpio::PROTEUS_LS_14, }; +static Gpio PROTEUS_HARLEY_OUTPUTS[] = { + Gpio::PROTEUS_LS_1, + Gpio::PROTEUS_LS_2, + Gpio::PROTEUS_IGN_1, + Gpio::PROTEUS_IGN_2, +}; + int getBoardMetaLowSideOutputsCount() { if (engineConfiguration->engineType == engine_type_e::MAVERICK_X3) { return getBoardMetaOutputsCount(); } + if (engineConfiguration->engineType == engine_type_e::PROTEUS_HARLEY) { + return getBoardMetaOutputsCount(); + } return 16; } @@ -226,10 +236,16 @@ int getBoardMetaOutputsCount() { if (engineConfiguration->engineType == engine_type_e::ME17_9_MISC) { return efi::size(PROTEUS_ME17_ADAPTER_OUTPUTS); } + if (engineConfiguration->engineType == engine_type_e::PROTEUS_HARLEY) { + return efi::size(PROTEUS_HARLEY_OUTPUTS); + } return efi::size(PROTEUS_OUTPUTS); } int getBoardMetaDcOutputsCount() { + if (engineConfiguration->engineType == engine_type_e::PROTEUS_HARLEY) { + return 1; + } return 1; } @@ -237,5 +253,8 @@ Gpio* getBoardMetaOutputs() { if (engineConfiguration->engineType == engine_type_e::MAVERICK_X3) { return PROTEUS_CANAM_OUTPUTS; } + if (engineConfiguration->engineType == engine_type_e::PROTEUS_HARLEY) { + return PROTEUS_HARLEY_OUTPUTS; + } return PROTEUS_OUTPUTS; }