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

Functions

Gpio getCommsLedPin ()
 
Gpio getRunningLedPin ()
 
Gpio getWarningLedPin ()
 
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 76 of file board_configuration_uaefi121.cpp.

76 {
77 return 2;
78}

◆ getBoardMetaLowSideOutputsCount()

int getBoardMetaLowSideOutputsCount ( )

Definition at line 126 of file board_configuration_uaefi121.cpp.

126 {
128 return getBoardMetaOutputsCount() - 3;
129 }
130 return getBoardMetaOutputsCount() - 1 - 6;
131}
int getBoardMetaOutputsCount()
static constexpr engine_configuration_s * engineConfiguration
Here is the call graph for this function:

◆ getBoardMetaOutputs()

Gpio * getBoardMetaOutputs ( )

Definition at line 133 of file board_configuration_uaefi121.cpp.

133 {
135 return SBC_OUTPUTS;
136 }
137 return OUTPUTS;
138}
static Gpio OUTPUTS[]
static Gpio SBC_OUTPUTS[]

◆ getBoardMetaOutputsCount()

int getBoardMetaOutputsCount ( )

Definition at line 119 of file board_configuration_uaefi121.cpp.

119 {
121 return efi::size(SBC_OUTPUTS);
122 }
123 return efi::size(OUTPUTS);
124}

Referenced by getBoardMetaLowSideOutputsCount().

Here is the caller graph for this function:

◆ getCommsLedPin()

Gpio getCommsLedPin ( )

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

Author
Andrey Belomutskiy, (c) 2012-2023

Definition at line 13 of file board_configuration_uaefi121.cpp.

13 {
14 return Gpio::MM100_LED3_BLUE;
15}

◆ getRunningLedPin()

Gpio getRunningLedPin ( )

Definition at line 17 of file board_configuration_uaefi121.cpp.

17 {
18 // this one is used to drive tach pin 43
19 return Gpio::Unassigned;
20}
@ Unassigned

◆ getWarningLedPin()

Gpio getWarningLedPin ( )

Definition at line 22 of file board_configuration_uaefi121.cpp.

22 {
23 return Gpio::MM100_LED4_YELLOW;
24}

◆ setup_custom_board_overrides()

void setup_custom_board_overrides ( )

Definition at line 140 of file board_configuration_uaefi121.cpp.

140 {
143}
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

Definition at line 26 of file board_configuration_uaefi121.cpp.

26 {
27 engineConfiguration->tps1_1AdcChannel = MM100_IN_TPS_ANALOG;
28 engineConfiguration->tps1_2AdcChannel = MM100_IN_AUX1_ANALOG;
29 engineConfiguration->map.sensor.hwChannel = MM100_IN_MAP1_ANALOG;
30
31 setPPSInputs(MM100_IN_PPS_ANALOG, MM100_IN_AUX2_ANALOG);
32
33 engineConfiguration->clt.adcChannel = MM100_IN_CLT_ANALOG;
34 engineConfiguration->iat.adcChannel = MM100_IN_IAT_ANALOG;
35
36 engineConfiguration->triggerInputPins[0] = Gpio::MM100_UART8_TX; // VR2 max9924 is the safer default
37 engineConfiguration->camInputs[0] = Gpio::MM100_IN_D2; // HALL2
38 engineConfiguration->camInputs[1] = Gpio::MM100_IN_D3; // HALL3
39
40 engineConfiguration->vehicleSpeedSensorInputPin = Gpio::MM100_IN_D1; // HALL1
41}
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 43 of file board_configuration_uaefi121.cpp.

43 {
45
46 engineConfiguration->mainRelayPin = Gpio::MM100_IGN7;
47 engineConfiguration->fuelPumpPin = Gpio::MM100_IGN8;
48
50
51 // SPI3 for on-board EGT
53 // MOSI not needed, we have one-way communication here
58
59 engineConfiguration->injectionPins[0] = Gpio::MM100_MEGA_UAEFI_INJ1;
60 engineConfiguration->injectionPins[1] = Gpio::MM100_INJ2;
61 engineConfiguration->injectionPins[2] = Gpio::MM100_INJ3;
62 engineConfiguration->injectionPins[3] = Gpio::MM100_INJ4;
63 engineConfiguration->injectionPins[4] = Gpio::MM100_INJ5;
64 engineConfiguration->injectionPins[5] = Gpio::MM100_INJ6;
65
66 engineConfiguration->ignitionPins[0] = Gpio::MM100_IGN1;
67 engineConfiguration->ignitionPins[1] = Gpio::MM100_IGN2;
68 engineConfiguration->ignitionPins[2] = Gpio::MM100_IGN3;
69 engineConfiguration->ignitionPins[3] = Gpio::MM100_IGN4;
70 engineConfiguration->ignitionPins[4] = Gpio::MM100_IGN5;
71 engineConfiguration->ignitionPins[5] = Gpio::MM100_IGN6;
72
74}
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 80 of file board_configuration_uaefi121.cpp.

80 {
81 Gpio::MM100_MEGA_UAEFI_INJ1, // 44a INJ_1
82 Gpio::MM100_INJ2, // 45a INJ_2
83 Gpio::MM100_INJ3, // 46a INJ_3
84 Gpio::MM100_INJ4, // 47a INJ_4
85 Gpio::MM100_INJ5, // 48a INJ_5
86 Gpio::MM100_INJ6, // 49a INJ_6
87 Gpio::MM100_SPI2_CS, // 50a INJ_7
88 Gpio::MM100_MEGA_UAEFI_SPI2_SCK, // 51a INJ_8
89 Gpio::MM100_INJ7, // 14a LS1
90 Gpio::MM100_INJ8, // 15a LS2
91 Gpio::MM100_OUT_PWM1, // 16a LS3
92 Gpio::MM100_OUT_PWM2, // 88a LS4
93 Gpio::MM100_IGN7, // 86a LS5_HOT
94 Gpio::MM100_IGN8, // 87a LS6_HOT fuelpump
95 Gpio::MM100_LED2_GREEN, // 43a High Side Output
96 Gpio::MM100_IGN1, // Coil 1
97 Gpio::MM100_IGN2, // Coil 2
98 Gpio::MM100_IGN3, // Coil 3
99 Gpio::MM100_IGN4, // Coil 4
100 Gpio::MM100_IGN5, // Coil 5
101 Gpio::MM100_IGN6, // Coil 6
102};

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 104 of file board_configuration_uaefi121.cpp.

104 {
105 Gpio::MM100_MEGA_UAEFI_INJ1, // 44a INJ_1
106 Gpio::MM100_INJ2, // 45a INJ_2
107 Gpio::MM100_INJ3, // 46a INJ_3
108 Gpio::MM100_INJ4, // 47a INJ_4
109 Gpio::MM100_INJ5, // 48a INJ_5
110 Gpio::MM100_INJ6, // 49a INJ_6
111 Gpio::MM100_SPI2_CS, // 50a INJ_7
112 Gpio::MM100_MEGA_UAEFI_SPI2_SCK, // 51a INJ_8
113 Gpio::MM100_IGN8, // 87a LS6_HOT fuelpump
114 Gpio::MM100_IGN1, // Coil 1
115 Gpio::MM100_IGN2, // Coil 2
116
117};

Referenced by getBoardMetaOutputs(), and getBoardMetaOutputsCount().

Go to the source code of this file.