From f96a19c4abe801e4dc0dccd8073ba8e8a999339f Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 14 Jan 2024 00:14:21 -0500 Subject: [PATCH] only:m74_9 --- .../boards/m74_9/board_configuration.cpp | 18 +++++++++--------- .../config/boards/m74_9/connectors/m74_9.yaml | 4 ++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/firmware/config/boards/m74_9/board_configuration.cpp b/firmware/config/boards/m74_9/board_configuration.cpp index ad28c857e0..06fcb5d335 100644 --- a/firmware/config/boards/m74_9/board_configuration.cpp +++ b/firmware/config/boards/m74_9/board_configuration.cpp @@ -46,11 +46,11 @@ static void setupEtb() { // PWM - pwm control (enable high, coast low) // DIS - disables motor (enable low) -// // PWM pin -// engineConfiguration->etbIo[0].controlPin = Gpio::C7; -// // DIR pin -// engineConfiguration->etbIo[0].directionPin1 = Gpio::A8; -// // Disable pin + // PWM pin + engineConfiguration->etbIo[0].controlPin = Gpio::B14; + // DIR pin + engineConfiguration->etbIo[0].directionPin1 = Gpio::B15; +// // Disable pin todo clarify if we have it? // engineConfiguration->etbIo[0].disablePin = Gpio::C8; // we only have pwm/dir, no dira/dirb @@ -82,11 +82,11 @@ void setBoardDefaultConfiguration() { engineConfiguration->spi1sckPin = Gpio::E13; engineConfiguration->spi1SckMode = PO_DEFAULT; -// todo engineConfiguration->triggerInputPins[0] = ; -// todo engineConfiguration->camInputs[0] = ; + engineConfiguration->triggerInputPins[0] = Gpio::F8; + engineConfiguration->camInputs[0] = Gpio::B9; -// todo engineConfiguration->clt.adcChannel = EFI_ADC_; -// todo engineConfiguration->iat.adcChannel = EFI_ADC_; +// todo engineConfiguration->clt.adcChannel = EFI_ADC_; // ADC3 PF5 +// todo engineConfiguration->iat.adcChannel = EFI_ADC_; // ADC3 PF6 // todo engineConfiguration->map.sensor.hwChannel = EFI_ADC_; // ?k high side/?k low side = ? ratio divider todo is the value below right? diff --git a/firmware/config/boards/m74_9/connectors/m74_9.yaml b/firmware/config/boards/m74_9/connectors/m74_9.yaml index 67a9d582d3..5dc3bfc06f 100644 --- a/firmware/config/boards/m74_9/connectors/m74_9.yaml +++ b/firmware/config/boards/m74_9/connectors/m74_9.yaml @@ -2,6 +2,8 @@ pins: # Connector A - pin: AA1 function: Crank position sensor (pin A) + id: F8 + class: event_inputs type: vr - pin: AA2 @@ -114,6 +116,8 @@ pins: - pin: AG2 function: Camshaft position sensor signal type: hall + id: [B9, B9] + class: [event_inputs, switch_inputs] - pin: AG4 id: L9779_OUT_3