2021-10-26 07:27:10 -07:00
|
|
|
/*
|
|
|
|
* @file mre_meta.h
|
|
|
|
*
|
|
|
|
* @date Oct 25, 2021
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-03-27 16:44:20 -07:00
|
|
|
#define MRE_DEFAULT_AT_PULLUP 2700
|
|
|
|
|
2022-09-29 17:53:31 -07:00
|
|
|
#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
|
|
|
|
|
2023-04-11 08:35:22 -07:00
|
|
|
// pin 7 - OpenDrain: 4.5A
|
2022-04-28 14:32:39 -07:00
|
|
|
#define MRE_LS_1 Gpio::TLE8888_PIN_6
|
2021-12-30 23:17:21 -08:00
|
|
|
|
2023-04-11 08:35:22 -07:00
|
|
|
// pin 3 - Lowside 2
|
2022-09-29 17:53:31 -07:00
|
|
|
#define MRE_LS_2 Gpio::TLE8888_PIN_5
|
|
|
|
|
2021-10-26 07:27:10 -07:00
|
|
|
// clt = "18 - AN temp 1"
|
2022-01-01 17:37:49 -08:00
|
|
|
// R27 pull-up
|
2021-10-26 07:27:10 -07:00
|
|
|
#define MRE_IN_ANALOG_TEMP_1 EFI_ADC_0
|
|
|
|
#define MRE_IN_CLT MRE_IN_ANALOG_TEMP_1
|
|
|
|
|
|
|
|
// iat = "23 - AN temp 2"
|
2022-01-01 17:37:49 -08:00
|
|
|
// R25 pull-up
|
2021-10-26 07:27:10 -07:00
|
|
|
#define MRE_IN_ANALOG_TEMP_2 EFI_ADC_1
|
|
|
|
#define MRE_IN_IAT MRE_IN_ANALOG_TEMP_2
|
|
|
|
|
|
|
|
// map = "27 - AN volt 1"
|
|
|
|
#define MRE_IN_ANALOG_VOLT_1 EFI_ADC_10
|
|
|
|
#define MRE_IN_MAP MRE_IN_ANALOG_VOLT_1
|
|
|
|
|
|
|
|
// tps = "20 - AN volt 5" PC3
|
|
|
|
#define MRE_IN_ANALOG_VOLT_5 EFI_ADC_13
|
|
|
|
#define MRE_IN_TPS MRE_IN_ANALOG_VOLT_5
|
2021-12-30 21:45:12 -08:00
|
|
|
|
|
|
|
// 26 - AN volt 2
|
|
|
|
#define MRE_IN_ANALOG_VOLT_2 EFI_ADC_6
|
2023-04-01 18:07:43 -07:00
|
|
|
#define MRE_IN_TPS2 MRE_IN_ANALOG_VOLT_2
|
2021-12-30 21:45:12 -08:00
|
|
|
|
2021-12-30 22:12:09 -08:00
|
|
|
// 31 - AN volt 3
|
|
|
|
#define MRE_IN_ANALOG_VOLT_3 EFI_ADC_7
|
2023-03-31 20:34:47 -07:00
|
|
|
#define MRE_IN_PPS MRE_IN_ANALOG_VOLT_3
|
2021-12-30 22:12:09 -08:00
|
|
|
|
2023-04-17 17:32:55 -07:00
|
|
|
// 19 - AN volt 4
|
|
|
|
#define MRE_IN_ANALOG_VOLT_4 EFI_ADC_12
|
|
|
|
|
2021-12-30 22:12:09 -08:00
|
|
|
// 32 - AN volt 6
|
|
|
|
#define MRE_IN_ANALOG_VOLT_6 EFI_ADC_14
|
|
|
|
|
2023-03-31 20:34:47 -07:00
|
|
|
// 30 - AN volt 7
|
|
|
|
#define MRE_IN_ANALOG_VOLT_7 EFI_ADC_15
|
|
|
|
#define MRE_IN_PPS2 MRE_IN_ANALOG_VOLT_7
|
|
|
|
|
2021-12-30 22:12:09 -08:00
|
|
|
// 36 - AN volt 8
|
|
|
|
#define MRE_IN_ANALOG_VOLT_8 EFI_ADC_8
|
|
|
|
|
|
|
|
// 40 - AN volt 9
|
2021-12-30 21:45:12 -08:00
|
|
|
#define MRE_IN_ANALOG_VOLT_9 EFI_ADC_9
|
2023-04-18 12:36:58 -07:00
|
|
|
#define MRE_AV9_REUSE Gpio::B1
|
2021-12-30 22:44:28 -08:00
|
|
|
|
|
|
|
// 28 - AN volt 10
|
|
|
|
#define MRE_IN_ANALOG_VOLT_10 EFI_ADC_4
|
2022-09-29 17:53:31 -07:00
|
|
|
|
2023-04-11 08:35:22 -07:00
|
|
|
// 33
|
2023-04-26 17:27:45 -07:00
|
|
|
#define MRE_GPOUT_3 Gpio::TLE8888_PIN_22
|
|
|
|
|
|
|
|
// 34
|
|
|
|
#define MRE_GPOUT_2 Gpio::TLE8888_PIN_21
|
|
|
|
|
|
|
|
// 35
|
|
|
|
#define MRE_GPOUT_1 Gpio::TLE8888_PIN_21
|
2023-04-11 08:35:22 -07:00
|
|
|
|
2022-09-29 19:17:28 -07:00
|
|
|
#if HW_MICRO_RUSEFI
|
2022-09-29 17:53:31 -07:00
|
|
|
static Gpio MRE_OUTPUTS[] = {
|
|
|
|
MRE_INJ_1,
|
|
|
|
MRE_INJ_2,
|
|
|
|
MRE_INJ_3,
|
|
|
|
MRE_INJ_4,
|
|
|
|
MRE_LS_1,
|
|
|
|
};
|
2022-09-29 19:17:28 -07:00
|
|
|
#endif // HW_MICRO_RUSEFI
|