From a93657bb789b207fa8e877c9fce0a792c55ff54f Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 2 Jun 2022 20:50:11 -0400 Subject: [PATCH] E67 ETB settings --- .../hellen-gm-e67/board_configuration.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp b/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp index f2852c1a19..2b7c5cd4f2 100644 --- a/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp @@ -102,6 +102,23 @@ void setBoardConfigOverrides() { engineConfiguration->canTxPin = Gpio::D1; engineConfiguration->canRxPin = Gpio::D0; + // TLE9201 driver + // This chip has three control pins: + // DIR - sets direction of the motor + // PWM - pwm control (enable high, coast low) + // DIS - disables motor (enable low) + + //ETB1 + // PWM pin + engineConfiguration->etbIo[0].controlPin = H144_OUT_PWM8; + // DIR pin + engineConfiguration->etbIo[0].directionPin1 = H144_OUT_IO13; + // Disable pin + engineConfiguration->etbIo[0].disablePin = H144_OUT_IO4; + // Unused + engineConfiguration->etbIo[0].directionPin2 = Gpio::Unassigned; + + } void setSerialConfigurationOverrides() {