rusefi 2022-03-30 15:55:42 -04:00
parent 5897fe7eb7
commit 094d324bbf
2 changed files with 8 additions and 2 deletions

View File

@ -49,9 +49,9 @@ static void setupEtb() {
// PWM pin
engineConfiguration->etbIo[0].controlPin = H144_OUT_PWM2;
// DIR pin
engineConfiguration->etbIo[0].directionPin1 = H144_OUT_IO1;
engineConfiguration->etbIo[0].directionPin1 = H144_GP1;
// Disable pin
engineConfiguration->etbIo[0].disablePin = H144_OUT_IO2;
engineConfiguration->etbIo[0].disablePin = H144_GP2;
// Unused
engineConfiguration->etbIo[0].directionPin2 = GPIO_UNASSIGNED;

View File

@ -57,6 +57,12 @@ void detectHellenBoardType();
#define H144_OUT_PWM8 GPIOD_12
// also IO1/IO5 on rev 0.6
#define H144_GP1 GPIOD_4
// also IO2/IO5 on rev 0.6
#define H144_GP2 GPIOD_7
#define H144_OUT_IO1 GPIOD_3
#define H144_OUT_IO2 GPIOA_9
#define H144_OUT_IO3 GPIOG_14