From ad75fbe21615128c9daaa7f8a999ad4fcab57f0f Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 9 Nov 2021 15:33:01 -0500 Subject: [PATCH] hellen88 --- .../hellen88bmw/board_configuration.cpp | 3 +- .../hellen/hellen88bmw/connectors/main.yaml | 37 +++++++++++++++++++ firmware/config/boards/hellen/hellen_meta.h | 7 ++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/firmware/config/boards/hellen/hellen88bmw/board_configuration.cpp b/firmware/config/boards/hellen/hellen88bmw/board_configuration.cpp index cd4b989c53..96d3d458fc 100644 --- a/firmware/config/boards/hellen/hellen88bmw/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen88bmw/board_configuration.cpp @@ -133,9 +133,10 @@ void setBoardDefaultConfiguration(void) { engineConfiguration->canRxPin = GPIOD_0; engineConfiguration->fuelPumpPin = GPIOD_12; // OUT_IO9 // 113 Fuel Pump Relay - engineConfiguration->idle.solenoidPin = GPIO_UNASSIGNED; + engineConfiguration->idle.solenoidPin = H144_OUT_PWM5; // engineConfiguration->fanPin = GPIOD_12; // OUT_PWM8 engineConfiguration->mainRelayPin = GPIOG_14; // pin: 111a, OUT_IO3 + engineConfiguration->tachOutputPin = H144_OUT_PWM7; // "required" hardware is done - set some reasonable defaults setupDefaultSensorInputs(); diff --git a/firmware/config/boards/hellen/hellen88bmw/connectors/main.yaml b/firmware/config/boards/hellen/hellen88bmw/connectors/main.yaml index 76660e9917..ae733d28e4 100644 --- a/firmware/config/boards/hellen/hellen88bmw/connectors/main.yaml +++ b/firmware/config/boards/hellen/hellen88bmw/connectors/main.yaml @@ -28,6 +28,13 @@ pins: ts_name: 5 - INJ_4 type: inj + - pin: 7 + id: GPIOF_13 + function: Injector 7/VVT Output + class: outputs + ts_name: 7 - INJ_7/VVT + type: inj + - pin: 8 ts_name: CEL @@ -71,6 +78,12 @@ pins: function: Main relay control type: ls + - pin: 29 +# H144_OUT_PWM5 + id: GPIOC_9 + class: outputs + ts_name: 29 - Idle + - pin: 31 id: GPIOD_11 function: Injector 3 Output @@ -92,12 +105,25 @@ pins: ts_name: 33 - INJ_1 type: inj + - pin: 35 + id: GPIOF_14 + function: Injector 8 Output + class: outputs + ts_name: 35 - INJ_8 + type: inj + - pin: 41 id: EFI_ADC_10 class: analog_inputs ts_name: 41 - MAF function: MAF sensor + - pin: 47 +# H144_OUT_PWM7 + id: GPIOD_15 + class: outputs + ts_name: 47 - Tach + - pin: 50 id: GPIOC_13 class: outputs @@ -137,6 +163,17 @@ pins: ts_name: 78 - CLT function: CLT sensor + - pin: Aux MAP +# H144_IN_MAP2 + id: EFI_ADC_11 + class: analog_inputs + ts_name: Aux MAP + + - pin: Aux BARO +# H144_IN_AUX4 + id: EFI_ADC_7 + class: analog_inputs + ts_name: Aux BARO info: title: Hellen 88 BMW diff --git a/firmware/config/boards/hellen/hellen_meta.h b/firmware/config/boards/hellen/hellen_meta.h index 7b17b2f7c8..230d26da58 100644 --- a/firmware/config/boards/hellen/hellen_meta.h +++ b/firmware/config/boards/hellen/hellen_meta.h @@ -63,11 +63,18 @@ // IN_MAP1 AIN9 PC0 #define H144_IN_MAP1 EFI_ADC_10 +// AIN10 PC1 +#define H144_IN_MAP2 EFI_ADC_11 #define H144_IN_AUX1 EFI_ADC_8 // #define H144_IN_AUX2 EFI_ADC_14 +// AIN22 PC5 +#define H144_IN_AUX3 EFI_ADC_15 +// AIN20 PA7 +#define H144_IN_AUX4 EFI_ADC_7 + #define H144_IN_O2S2 EFI_ADC_1 #define H144_IN_D_2 GPIOE_13