mirror of https://github.com/rusefi/rusefi.git
only:hellen128
This commit is contained in:
parent
165ed40f85
commit
1989be29ab
|
@ -70,10 +70,9 @@ static void setHellen128ETBConfig() {
|
||||||
// looks like we support PCF8575 i2c I/O expander
|
// looks like we support PCF8575 i2c I/O expander
|
||||||
m_i2c.read(/*address*/0x20, variant, sizeof(variant));
|
m_i2c.read(/*address*/0x20, variant, sizeof(variant));
|
||||||
|
|
||||||
efiPrintf("BoardID [%02x%02x] ", variant[0], variant[1]);
|
|
||||||
|
|
||||||
//Rev C is different then Rev A/B
|
//Rev C is different then Rev A/B
|
||||||
if ((variant[0] == 0x63) && (variant[1] == 0x00)) {
|
if ((variant[0] == 0x63) && (variant[1] == 0x00)) {
|
||||||
|
efiPrintf("rev C Board Detected");
|
||||||
// TLE9201 driver
|
// TLE9201 driver
|
||||||
// This chip has three control pins:
|
// This chip has three control pins:
|
||||||
// DIR - sets direction of the motor
|
// DIR - sets direction of the motor
|
||||||
|
@ -100,6 +99,7 @@ static void setHellen128ETBConfig() {
|
||||||
engineConfiguration->etb_use_two_wires = false;
|
engineConfiguration->etb_use_two_wires = false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
efiPrintf("A/B BoardID [%02x%02x] ", variant[0], variant[1]);
|
||||||
//Set default ETB config
|
//Set default ETB config
|
||||||
engineConfiguration->etbIo[0].directionPin1 = H176_OUT_PWM2;
|
engineConfiguration->etbIo[0].directionPin1 = H176_OUT_PWM2;
|
||||||
engineConfiguration->etbIo[0].directionPin2 = H176_OUT_PWM3;
|
engineConfiguration->etbIo[0].directionPin2 = H176_OUT_PWM3;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue