2021-10-02 10:25:40 -07:00
|
|
|
/*
|
|
|
|
* honda_k_dbc.cpp
|
|
|
|
*
|
|
|
|
* @date Oct 2, 2021
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "honda_k_dbc.h"
|
|
|
|
|
2021-10-12 15:24:45 -07:00
|
|
|
#if HW_PROTEUS & EFI_PROD_CODE
|
|
|
|
#include "proteus_meta.h"
|
2021-10-23 13:19:28 -07:00
|
|
|
#endif // HW_PROTEUS
|
2021-10-12 15:24:45 -07:00
|
|
|
|
2021-10-23 12:49:02 -07:00
|
|
|
/**
|
|
|
|
* PROTEUS_HONDA_ELEMENT_2003
|
|
|
|
*/
|
2021-10-02 10:25:40 -07:00
|
|
|
void setProteusHondaElement2003(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
2021-10-12 15:24:45 -07:00
|
|
|
engineConfiguration->specs.cylindersCount = 4;
|
|
|
|
engineConfiguration->specs.displacement = 2.4;
|
2021-10-24 11:44:37 -07:00
|
|
|
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
|
|
|
|
engineConfiguration->trigger.customTotalToothCount = 12;
|
|
|
|
engineConfiguration->trigger.customSkippedToothCount = 0;
|
|
|
|
|
|
|
|
engineConfiguration->vvtMode[0] = VVT_FIRST_HALF;
|
|
|
|
engineConfiguration->vvtMode[1] = VVT_FIRST_HALF;
|
2021-10-23 12:49:02 -07:00
|
|
|
|
|
|
|
strcpy(CONFIG(engineMake), ENGINE_MAKE_HONDA);
|
|
|
|
strcpy(CONFIG(engineCode), "K24");
|
|
|
|
strcpy(CONFIG(vehicleName), "test");
|
|
|
|
|
|
|
|
#if HW_PROTEUS & EFI_PROD_CODE
|
|
|
|
engineConfiguration->triggerInputPins[0] = PROTEUS_DIGITAL_2;
|
|
|
|
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_4;
|
|
|
|
engineConfiguration->camInputs[1 * CAMS_PER_BANK] = PROTEUS_DIGITAL_1;
|
2021-10-23 13:19:28 -07:00
|
|
|
|
|
|
|
engineConfiguration->injectionPins[0] = PROTEUS_LS_8;
|
|
|
|
engineConfiguration->injectionPins[1] = PROTEUS_LS_7;
|
|
|
|
engineConfiguration->injectionPins[2] = PROTEUS_LS_6;
|
|
|
|
engineConfiguration->injectionPins[3] = PROTEUS_LS_5;
|
|
|
|
|
|
|
|
engineConfiguration->malfunctionIndicatorPin = PROTEUS_LS_10;
|
|
|
|
|
|
|
|
CONFIG(mainRelayPin) = PROTEUS_LS_9;
|
|
|
|
CONFIG(fuelPumpPin) = PROTEUS_LS_11;
|
|
|
|
// CONFIG(fanPin) = PROTEUS_LS_15;
|
|
|
|
|
|
|
|
#endif // HW_PROTEUS
|
2021-10-12 15:24:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void setProteusHondaOBD2A(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
2021-10-02 10:25:40 -07:00
|
|
|
|
|
|
|
}
|