From c5cf0f46b039729782ba6e2b08c37a72337f46f1 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 18 Apr 2023 15:36:58 -0400 Subject: [PATCH] m111 --- firmware/config/boards/mre_meta.h | 1 + firmware/config/engines/m111.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/firmware/config/boards/mre_meta.h b/firmware/config/boards/mre_meta.h index cd20a86ac8..505ee2fe45 100644 --- a/firmware/config/boards/mre_meta.h +++ b/firmware/config/boards/mre_meta.h @@ -61,6 +61,7 @@ // 40 - AN volt 9 #define MRE_IN_ANALOG_VOLT_9 EFI_ADC_9 +#define MRE_AV9_REUSE Gpio::B1 // 28 - AN volt 10 #define MRE_IN_ANALOG_VOLT_10 EFI_ADC_4 diff --git a/firmware/config/engines/m111.cpp b/firmware/config/engines/m111.cpp index 3bd2b07b18..318adcae70 100644 --- a/firmware/config/engines/m111.cpp +++ b/firmware/config/engines/m111.cpp @@ -72,6 +72,8 @@ void setMreM111EngineConfiguration() { setTPS1Inputs(MRE_IN_TPS, MRE_IN_TPS2); engineConfiguration->oilPressure.hwChannel = MRE_IN_ANALOG_VOLT_4; + // assumes R30 is populated + engineConfiguration->boostControlPin = MRE_AV9_REUSE; #endif // HW_MICRO_RUSEFI // note how these numbers are very flipped hyundai154 defaults? setTPS1Calibration(891, 69, 98, 926);