rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
board_configuration_uaefi121.cpp File Reference

Functions

static void setupDefaultSensorInputs ()
 
static void uaefi_121boardDefaultConfiguration ()
 
int getBoardMetaDcOutputsCount ()
 
int getBoardMetaOutputsCount ()
 
int getBoardMetaLowSideOutputsCount ()
 
GpiogetBoardMetaOutputs ()
 
void setup_custom_board_overrides ()
 

Variables

static Gpio OUTPUTS []
 
static Gpio SBC_OUTPUTS []
 

Function Documentation

◆ getBoardMetaDcOutputsCount()

int getBoardMetaDcOutputsCount ( )

Definition at line 63 of file board_configuration_uaefi121.cpp.

63 {
64 return 2;
65}

◆ getBoardMetaLowSideOutputsCount()

int getBoardMetaLowSideOutputsCount ( )

Definition at line 113 of file board_configuration_uaefi121.cpp.

113 {
115 return getBoardMetaOutputsCount() - 3;
116 }
117 return getBoardMetaOutputsCount() - 1 - 6;
118}
int getBoardMetaOutputsCount()
static constexpr engine_configuration_s * engineConfiguration
Here is the call graph for this function:

◆ getBoardMetaOutputs()

Gpio * getBoardMetaOutputs ( )

Definition at line 120 of file board_configuration_uaefi121.cpp.

120 {
122 return SBC_OUTPUTS;
123 }
124 return OUTPUTS;
125}
static Gpio OUTPUTS[]
static Gpio SBC_OUTPUTS[]

◆ getBoardMetaOutputsCount()

int getBoardMetaOutputsCount ( )

Definition at line 106 of file board_configuration_uaefi121.cpp.

106 {
108 return efi::size(SBC_OUTPUTS);
109 }
110 return efi::size(OUTPUTS);
111}

Referenced by getBoardMetaLowSideOutputsCount().

Here is the caller graph for this function:

◆ setup_custom_board_overrides()

void setup_custom_board_overrides ( )

Definition at line 127 of file board_configuration_uaefi121.cpp.

127 {
130}
static void uaefi_121boardDefaultConfiguration()
std::optional< setup_custom_board_overrides_type > custom_board_ConfigOverrides
std::optional< setup_custom_board_overrides_type > custom_board_DefaultConfiguration
void setMegaUaefiBoardConfigOverrides()
Definition mega-uaefi.cpp:7
Here is the call graph for this function:

◆ setupDefaultSensorInputs()

static void setupDefaultSensorInputs ( )
static

See https://rusefi.com/s/uaefi121

Author
Andrey Belomutskiy, (c) 2012-2023

Definition at line 13 of file board_configuration_uaefi121.cpp.

13 {
14 engineConfiguration->tps1_1AdcChannel = MM100_IN_TPS_ANALOG;
15 engineConfiguration->tps1_2AdcChannel = MM100_IN_AUX1_ANALOG;
16 engineConfiguration->map.sensor.hwChannel = MM100_IN_MAP1_ANALOG;
17
18 setPPSInputs(MM100_IN_PPS_ANALOG, MM100_IN_AUX2_ANALOG);
19
20 engineConfiguration->clt.adcChannel = MM100_IN_CLT_ANALOG;
21 engineConfiguration->iat.adcChannel = MM100_IN_IAT_ANALOG;
22
23 engineConfiguration->triggerInputPins[0] = Gpio::MM100_UART8_TX; // VR2 max9924 is the safer default
24 engineConfiguration->camInputs[0] = Gpio::MM100_IN_D2; // HALL2
25 engineConfiguration->camInputs[1] = Gpio::MM100_IN_D3; // HALL3
26
27 engineConfiguration->vehicleSpeedSensorInputPin = Gpio::MM100_IN_D1; // HALL1
28}
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2)
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]

Referenced by uaefi_121boardDefaultConfiguration().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uaefi_121boardDefaultConfiguration()

static void uaefi_121boardDefaultConfiguration ( )
static

Definition at line 30 of file board_configuration_uaefi121.cpp.

30 {
32
33 engineConfiguration->mainRelayPin = Gpio::MM100_IGN7;
34 engineConfiguration->fuelPumpPin = Gpio::MM100_IGN8;
35
37
38 // SPI3 for on-board EGT
40 // MOSI not needed, we have one-way communication here
45
46 engineConfiguration->injectionPins[0] = Gpio::MM100_MEGA_UAEFI_INJ1;
47 engineConfiguration->injectionPins[1] = Gpio::MM100_INJ2;
48 engineConfiguration->injectionPins[2] = Gpio::MM100_INJ3;
49 engineConfiguration->injectionPins[3] = Gpio::MM100_INJ4;
50 engineConfiguration->injectionPins[4] = Gpio::MM100_INJ5;
51 engineConfiguration->injectionPins[5] = Gpio::MM100_INJ6;
52
53 engineConfiguration->ignitionPins[0] = Gpio::MM100_IGN1;
54 engineConfiguration->ignitionPins[1] = Gpio::MM100_IGN2;
55 engineConfiguration->ignitionPins[2] = Gpio::MM100_IGN3;
56 engineConfiguration->ignitionPins[3] = Gpio::MM100_IGN4;
57 engineConfiguration->ignitionPins[4] = Gpio::MM100_IGN5;
58 engineConfiguration->ignitionPins[5] = Gpio::MM100_IGN6;
59
61}
static void setupDefaultSensorInputs()
void setMegaUaefiBoardDefaultConfiguration()

Referenced by setup_custom_board_overrides().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ OUTPUTS

Gpio OUTPUTS[]
static
Initial value:
= {
Gpio::MM100_MEGA_UAEFI_INJ1,
Gpio::MM100_INJ2,
Gpio::MM100_INJ3,
Gpio::MM100_INJ4,
Gpio::MM100_INJ5,
Gpio::MM100_INJ6,
Gpio::MM100_SPI2_CS,
Gpio::MM100_MEGA_UAEFI_SPI2_SCK,
Gpio::MM100_INJ7,
Gpio::MM100_INJ8,
Gpio::MM100_OUT_PWM1,
Gpio::MM100_OUT_PWM2,
Gpio::MM100_IGN7,
Gpio::MM100_IGN8,
Gpio::MM100_LED2_GREEN,
Gpio::MM100_IGN1,
Gpio::MM100_IGN2,
Gpio::MM100_IGN3,
Gpio::MM100_IGN4,
Gpio::MM100_IGN5,
Gpio::MM100_IGN6,
}

Definition at line 67 of file board_configuration_uaefi121.cpp.

67 {
68 Gpio::MM100_MEGA_UAEFI_INJ1, // 44a INJ_1
69 Gpio::MM100_INJ2, // 45a INJ_2
70 Gpio::MM100_INJ3, // 46a INJ_3
71 Gpio::MM100_INJ4, // 47a INJ_4
72 Gpio::MM100_INJ5, // 48a INJ_5
73 Gpio::MM100_INJ6, // 49a INJ_6
74 Gpio::MM100_SPI2_CS, // 50a INJ_7
75 Gpio::MM100_MEGA_UAEFI_SPI2_SCK, // 51a INJ_8
76 Gpio::MM100_INJ7, // 14a LS1
77 Gpio::MM100_INJ8, // 15a LS2
78 Gpio::MM100_OUT_PWM1, // 16a LS3
79 Gpio::MM100_OUT_PWM2, // 88a LS4
80 Gpio::MM100_IGN7, // 86a LS5_HOT
81 Gpio::MM100_IGN8, // 87a LS6_HOT fuelpump
82 Gpio::MM100_LED2_GREEN, // 43a High Side Output
83 Gpio::MM100_IGN1, // Coil 1
84 Gpio::MM100_IGN2, // Coil 2
85 Gpio::MM100_IGN3, // Coil 3
86 Gpio::MM100_IGN4, // Coil 4
87 Gpio::MM100_IGN5, // Coil 5
88 Gpio::MM100_IGN6, // Coil 6
89};

Referenced by getBoardMetaOutputs(), and getBoardMetaOutputsCount().

◆ SBC_OUTPUTS

Gpio SBC_OUTPUTS[]
static
Initial value:
= {
Gpio::MM100_MEGA_UAEFI_INJ1,
Gpio::MM100_INJ2,
Gpio::MM100_INJ3,
Gpio::MM100_INJ4,
Gpio::MM100_INJ5,
Gpio::MM100_INJ6,
Gpio::MM100_SPI2_CS,
Gpio::MM100_MEGA_UAEFI_SPI2_SCK,
Gpio::MM100_IGN8,
Gpio::MM100_IGN1,
Gpio::MM100_IGN2,
}

Definition at line 91 of file board_configuration_uaefi121.cpp.

91 {
92 Gpio::MM100_MEGA_UAEFI_INJ1, // 44a INJ_1
93 Gpio::MM100_INJ2, // 45a INJ_2
94 Gpio::MM100_INJ3, // 46a INJ_3
95 Gpio::MM100_INJ4, // 47a INJ_4
96 Gpio::MM100_INJ5, // 48a INJ_5
97 Gpio::MM100_INJ6, // 49a INJ_6
98 Gpio::MM100_SPI2_CS, // 50a INJ_7
99 Gpio::MM100_MEGA_UAEFI_SPI2_SCK, // 51a INJ_8
100 Gpio::MM100_IGN8, // 87a LS6_HOT fuelpump
101 Gpio::MM100_IGN1, // Coil 1
102 Gpio::MM100_IGN2, // Coil 2
103
104};

Referenced by getBoardMetaOutputs(), and getBoardMetaOutputsCount().

Go to the source code of this file.