mirror of https://github.com/rusefi/rusefi.git
only:hellen154hyundai_f7
This commit is contained in:
parent
7f6843f6c7
commit
f38f013b42
|
@ -15,17 +15,17 @@
|
|||
#include "hellen_meta.h"
|
||||
|
||||
static void setInjectorPins() {
|
||||
engineConfiguration->injectionPins[0] = Gpio::MC33810_0_OUT_0;
|
||||
engineConfiguration->injectionPins[1] = Gpio::MC33810_0_OUT_1;
|
||||
engineConfiguration->injectionPins[2] = Gpio::MC33810_0_OUT_2;
|
||||
engineConfiguration->injectionPins[3] = Gpio::MC33810_0_OUT_3;
|
||||
// engineConfiguration->injectionPins[0] = Gpio::MC33810_0_OUT_0;
|
||||
// engineConfiguration->injectionPins[1] = Gpio::MC33810_0_OUT_1;
|
||||
// engineConfiguration->injectionPins[2] = Gpio::MC33810_0_OUT_2;
|
||||
// engineConfiguration->injectionPins[3] = Gpio::MC33810_0_OUT_3;
|
||||
}
|
||||
|
||||
static void setIgnitionPins() {
|
||||
engineConfiguration->ignitionPins[0] = Gpio::MC33810_0_GD_0;
|
||||
engineConfiguration->ignitionPins[1] = Gpio::MC33810_0_GD_1;
|
||||
engineConfiguration->ignitionPins[2] = Gpio::MC33810_0_GD_2;
|
||||
engineConfiguration->ignitionPins[3] = Gpio::MC33810_0_GD_3;
|
||||
// engineConfiguration->ignitionPins[0] = Gpio::MC33810_0_GD_0;
|
||||
// engineConfiguration->ignitionPins[1] = Gpio::MC33810_0_GD_1;
|
||||
// engineConfiguration->ignitionPins[2] = Gpio::MC33810_0_GD_2;
|
||||
// engineConfiguration->ignitionPins[3] = Gpio::MC33810_0_GD_3;
|
||||
}
|
||||
|
||||
static void setupDefaultSensorInputs() {
|
||||
|
@ -58,13 +58,13 @@ void setBoardConfigOverrides() {
|
|||
engineConfiguration->triggerInputPins[1] = Gpio::Unassigned;
|
||||
// Direct hall-only cam input
|
||||
// exhaust input same on both revisions
|
||||
engineConfiguration->camInputs[1] = Gpio::H144_IN_D_AUX4;
|
||||
// engineConfiguration->camInputs[1] = Gpio::H144_IN_D_AUX4;
|
||||
|
||||
// int16_t hellenBoardId = engine->engineState.hellenBoardId;
|
||||
|
||||
// hellenBoardId == BOARD_ID_154HYUNDAI_C || hellenBoardId == BOARD_ID_154HYUNDAI_D
|
||||
engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_SENS2;
|
||||
engineConfiguration->camInputs[0] = Gpio::H144_IN_SENS3;
|
||||
// engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_SENS2;
|
||||
// engineConfiguration->camInputs[0] = Gpio::H144_IN_SENS3;
|
||||
|
||||
|
||||
// todo You would not believe how you invert TLE9201 #4579
|
||||
|
@ -101,15 +101,15 @@ void setBoardDefaultConfiguration() {
|
|||
|
||||
setHellenCan();
|
||||
|
||||
engineConfiguration->fuelPumpPin = Gpio::H144_OUT_IO9;
|
||||
engineConfiguration->fanPin = Gpio::H144_OUT_IO7;
|
||||
engineConfiguration->mainRelayPin = Gpio::H144_OUT_IO3; // pin: 111a
|
||||
// BK1 uses wire, BK2 uses CANbus
|
||||
engineConfiguration->malfunctionIndicatorPin = Gpio::H144_OUT_PWM8;
|
||||
|
||||
engineConfiguration->brakePedalPin = Gpio::H144_IN_RES3;
|
||||
engineConfiguration->clutchUpPin = Gpio::H144_IN_RES2;
|
||||
engineConfiguration->acSwitch = Gpio::H144_IN_RES1;
|
||||
// engineConfiguration->fuelPumpPin = Gpio::H144_OUT_IO9;
|
||||
// engineConfiguration->fanPin = Gpio::H144_OUT_IO7;
|
||||
// engineConfiguration->mainRelayPin = Gpio::H144_OUT_IO3; // pin: 111a
|
||||
// // BK1 uses wire, BK2 uses CANbus
|
||||
// engineConfiguration->malfunctionIndicatorPin = Gpio::H144_OUT_PWM8;
|
||||
//
|
||||
// engineConfiguration->brakePedalPin = Gpio::H144_IN_RES3;
|
||||
// engineConfiguration->clutchUpPin = Gpio::H144_IN_RES2;
|
||||
// engineConfiguration->acSwitch = Gpio::H144_IN_RES1;
|
||||
|
||||
// "required" hardware is done - set some reasonable defaults
|
||||
setupDefaultSensorInputs();
|
||||
|
|
Loading…
Reference in New Issue