mirror of https://github.com/FOME-Tech/fome-fw.git
h154
This commit is contained in:
parent
f5a4cfc06f
commit
ded601e54f
|
@ -118,7 +118,27 @@ void setBoardConfigOverrides() {
|
|||
efiSetPadMode("ETB FIX1", H144_OUT_PWM5, PAL_MODE_INPUT_ANALOG);
|
||||
efiSetPadMode("ETB FIX2", H144_OUT_IO13, PAL_MODE_INPUT_ANALOG);
|
||||
}
|
||||
}
|
||||
} else if (engine->engineState.hellenBoardId == BOARD_ID_154hyundai_c) {
|
||||
//ETB1
|
||||
// PWM pin
|
||||
engineConfiguration->etbIo[0].controlPin = H144_OUT_PWM2;
|
||||
// DIR pin
|
||||
engineConfiguration->etbIo[0].directionPin1 = H144_OUT_PWM3;
|
||||
// Disable pin
|
||||
engineConfiguration->etbIo[0].disablePin = H144_OUT_IO12;
|
||||
// Unused
|
||||
engineConfiguration->etbIo[0].directionPin2 = Gpio::Unassigned;
|
||||
|
||||
//ETB2
|
||||
// PWM pin
|
||||
engineConfiguration->etbIo[1].controlPin = H144_OUT_PWM4;
|
||||
// DIR pin
|
||||
engineConfiguration->etbIo[1].directionPin1 = H144_OUT_PWM5;
|
||||
// Disable pin
|
||||
engineConfiguration->etbIo[1].disablePin = H144_OUT_IO13;
|
||||
// Unused
|
||||
engineConfiguration->etbIo[1].directionPin2 = Gpio::Unassigned;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define BOARD_ID_154hyundai_c 10
|
||||
|
||||
void hellenWbo();
|
||||
|
||||
void setHellen144LedPins();
|
||||
|
|
Loading…
Reference in New Issue