only:proteus_f4
This commit is contained in:
rusefillc 2023-10-30 20:54:31 -04:00
parent 3a97ec4125
commit ec7a742396
1 changed files with 19 additions and 0 deletions

View File

@ -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;
}