CAN side of automated testing #4630

more meta
This commit is contained in:
rusefillc 2022-09-29 20:53:31 -04:00
parent 1e5e681c37
commit c17fa49426
3 changed files with 37 additions and 2 deletions

View File

@ -7,9 +7,17 @@
#pragma once
#define MRE_INJ_1 Gpio::TLE8888_PIN_1
#define MRE_INJ_2 Gpio::TLE8888_PIN_2
#define MRE_INJ_3 Gpio::TLE8888_PIN_3
#define MRE_INJ_4 Gpio::TLE8888_PIN_4
// OpenDrain: 4.5A
#define MRE_LS_1 Gpio::TLE8888_PIN_6
// "3 - Lowside 2"
#define MRE_LS_2 Gpio::TLE8888_PIN_5
// clt = "18 - AN temp 1"
// R27 pull-up
#define MRE_IN_ANALOG_TEMP_1 EFI_ADC_0
@ -45,3 +53,11 @@
// 28 - AN volt 10
#define MRE_IN_ANALOG_VOLT_10 EFI_ADC_4
static Gpio MRE_OUTPUTS[] = {
MRE_INJ_1,
MRE_INJ_2,
MRE_INJ_3,
MRE_INJ_4,
MRE_LS_1,
};

View File

@ -133,3 +133,22 @@
#define PROTEUS_DIGITAL_4 Gpio::E14
#define PROTEUS_DIGITAL_5 Gpio::E13
#define PROTEUS_DIGITAL_6 Gpio::E15
static Gpio PROTEUS_OUTPUTS[] = {
PROTEUS_LS_1,
PROTEUS_LS_2,
PROTEUS_LS_3,
PROTEUS_LS_4,
PROTEUS_LS_5,
PROTEUS_LS_6,
PROTEUS_LS_7,
PROTEUS_LS_8,
PROTEUS_LS_9,
PROTEUS_LS_10,
PROTEUS_LS_11,
PROTEUS_LS_12,
PROTEUS_LS_13,
PROTEUS_LS_14,
PROTEUS_LS_15,
PROTEUS_LS_16,
};

View File

@ -390,12 +390,12 @@ void setMreVwPassatB6() {
gppwm_channel *lowPressureFuelPumpControl = &engineConfiguration->gppwm[1];
// "42 - Injector 4", somehow GP4 did not work? not enough current? not happy with diode?
lowPressureFuelPumpControl->pin = Gpio::TLE8888_PIN_4;
lowPressureFuelPumpControl->pin = MRE_INJ_4;
gppwm_channel *coolantControl = &engineConfiguration->gppwm[0];
coolantControl->pin = Gpio::TLE8888_PIN_5; // "3 - Lowside 2"
coolantControl->pin = MRE_LS_2;
// "7 - Lowside 1"
//engineConfiguration->hpfpValvePin = MRE_LS_1;
engineConfiguration->disablePrimaryUart = true;