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

Detailed Description

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

Author
Andrey Belomutskiy, (c) 2012-2023

Definition in file board_configuration.cpp.

Functions

static void setInjectorPins ()
 
static void setIgnitionPins ()
 
static void setupDefaultSensorInputs ()
 
void onBoardStandBy ()
 
static void hellen_honda_k_boardConfigOverrides ()
 
static void hellen_honda_k_boardDefaultConfiguration ()
 Board-specific configuration defaults.
 
int getBoardMetaOutputsCount ()
 
int getBoardMetaLowSideOutputsCount ()
 
GpiogetBoardMetaOutputs ()
 
void setup_custom_board_overrides ()
 

Variables

static Gpio OUTPUTS []
 

Function Documentation

◆ getBoardMetaLowSideOutputsCount()

int getBoardMetaLowSideOutputsCount ( )

Definition at line 181 of file board_configuration.cpp.

181 {
182 return getBoardMetaOutputsCount() - 5;
183}
int getBoardMetaOutputsCount()
Here is the call graph for this function:

◆ getBoardMetaOutputs()

Gpio * getBoardMetaOutputs ( )

Definition at line 185 of file board_configuration.cpp.

185 {
186 return OUTPUTS;
187}
static Gpio OUTPUTS[]

◆ getBoardMetaOutputsCount()

int getBoardMetaOutputsCount ( )

Definition at line 177 of file board_configuration.cpp.

177 {
178 return efi::size(OUTPUTS);
179}

◆ hellen_honda_k_boardConfigOverrides()

static void hellen_honda_k_boardConfigOverrides ( )
static

Definition at line 49 of file board_configuration.cpp.

49 {
51
54
55
56 engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_RES1;
57 engineConfiguration->camInputs[0] = Gpio::H144_IN_RES3;
58 // ex or in?
59 engineConfiguration->camInputs[1] = Gpio::H144_IN_RES2;
60
61
62// //ETB1
63// // PWM pin
64// engineConfiguration->etbIo[0].controlPin = Gpio::H144_OUT_PWM2;
65// // DIR pin
66// engineConfiguration->etbIo[0].directionPin1 = Gpio::H144_OUT_PWM3;
67// // Disable pin
68// engineConfiguration->etbIo[0].disablePin = Gpio::H144_OUT_IO12;
69// // Unused
70// engineConfiguration->etbIo[0].directionPin2 = Gpio::Unassigned;
71
72}
static constexpr engine_configuration_s * engineConfiguration
void configureHellenCanTerminator()
void hellenMegaModule()
void setHellenMegaEnPin(bool enableBoardOnStartUp)
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]

Referenced by setup_custom_board_overrides().

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

◆ hellen_honda_k_boardDefaultConfiguration()

static void hellen_honda_k_boardDefaultConfiguration ( )
static

Board-specific configuration defaults.

See also setDefaultEngineConfiguration

Definition at line 81 of file board_configuration.cpp.

81 {
84 setHondaK();
85
86 // not override since sometimes we have issues?
88
90
93
95
97
98 engineConfiguration->vvtPins[0] = Gpio::H144_OUT_PWM4;
99
100 gppwm_channel *vtsControl = &engineConfiguration->gppwm[0];
101 vtsControl->pin = Gpio::H144_OUT_IO6;
102
103 engineConfiguration->fuelPumpPin = Gpio::H144_OUT_IO13;
104 engineConfiguration->idle.solenoidPin = Gpio::H144_LS_6;
105 engineConfiguration->fanPin = Gpio::H144_OUT_IO12;
106 engineConfiguration->mainRelayPin = Gpio::H144_OUT_IO3;
107 engineConfiguration->malfunctionIndicatorPin = Gpio::H144_OUT_IO7;
108
109 // how come this is not denso 183?!
110 engineConfiguration->map.sensor.type = MT_CUSTOM;
115
121
122 engineConfiguration->brakePedalPin = Gpio::H144_IN_CAM;
123 engineConfiguration->acRelayPin = Gpio::H144_LS_5;
124 engineConfiguration->tachOutputPin = Gpio::H144_OUT_IO10;
125 // A/C switch on k-line
126
127 // "required" hardware is done - set some reasonable defaults
129
130 engineConfiguration->etbFunctions[0] = DC_None;
131 engineConfiguration->etbFunctions[1] = DC_Wastegate;
132
133 // Some sensible defaults for other options
135
136 setAlgorithm(engine_load_mode_e::LM_SPEED_DENSITY);
137
138 engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
139
140#ifndef EFI_BOOTLOADER
143#endif // EFI_BOOTLOADER
144 setTPS1Calibration(100, 650);
145 hellenWbo();
146
148}
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax)
void setCrankOperationMode()
static constexpr persistent_config_s * config
void setAlgorithm(engine_load_mode_e algo)
static void setupDefaultSensorInputs()
static void setIgnitionPins()
static void setInjectorPins()
void setHellenCan()
void hellenWbo()
static void setAccelerometerSpi()
void setHellenMMbaro()
void setHondaK()
void setCommonNTCSensorParameters(ThermistorConf *thermistorConf)

Referenced by setup_custom_board_overrides().

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

◆ onBoardStandBy()

void onBoardStandBy ( )

Definition at line 44 of file board_configuration.cpp.

44 {
45 efiPrintf("K: onBoardStandBy");
47}
void hellenBoardStandBy()

Referenced by configureRusefiLuaUtilHooks().

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

◆ setIgnitionPins()

static void setIgnitionPins ( )
static

Definition at line 22 of file board_configuration.cpp.

22 {
23 engineConfiguration->ignitionPins[0] = Gpio::H144_IGN_1;
24 engineConfiguration->ignitionPins[1] = Gpio::H144_IGN_2;
25 engineConfiguration->ignitionPins[2] = Gpio::H144_IGN_3;
26 engineConfiguration->ignitionPins[3] = Gpio::H144_IGN_4;
27}

◆ setInjectorPins()

static void setInjectorPins ( )
static

Definition at line 15 of file board_configuration.cpp.

15 {
16 engineConfiguration->injectionPins[0] = Gpio::H144_LS_1;
17 engineConfiguration->injectionPins[1] = Gpio::H144_LS_2;
18 engineConfiguration->injectionPins[2] = Gpio::H144_LS_3;
19 engineConfiguration->injectionPins[3] = Gpio::H144_LS_4;
20}

◆ setup_custom_board_overrides()

void setup_custom_board_overrides ( )

Definition at line 189 of file board_configuration.cpp.

189 {
192}
std::optional< setup_custom_board_overrides_type > custom_board_ConfigOverrides
std::optional< setup_custom_board_overrides_type > custom_board_DefaultConfiguration
static void hellen_honda_k_boardDefaultConfiguration()
Board-specific configuration defaults.
static void hellen_honda_k_boardConfigOverrides()
Here is the call graph for this function:

◆ setupDefaultSensorInputs()

static void setupDefaultSensorInputs ( )
static

Variable Documentation

◆ OUTPUTS

Gpio OUTPUTS[]
static
Initial value:
= {
Gpio::H144_LS_1,
Gpio::H144_LS_2,
Gpio::H144_LS_3,
Gpio::H144_LS_4,
Gpio::H144_LS_5,
Gpio::H144_LS_6,
Gpio::H144_LS_7,
Gpio::H144_LS_8,
Gpio::H144_OUT_IO12,
Gpio::H144_OUT_PWM6,
Gpio::H144_OUT_PWM5,
Gpio::H144_OUT_IO3,
Gpio::H144_OUT_IO7,
Gpio::H144_OUT_IO13,
Gpio::H144_OUT_PWM8,
Gpio::H144_OUT_IO9,
Gpio::H144_OUT_IO10,
Gpio::H144_OUT_IO6,
Gpio::H144_IGN_1,
Gpio::H144_IGN_2,
Gpio::H144_IGN_3,
Gpio::H144_IGN_4,
}

Definition at line 150 of file board_configuration.cpp.

150 {
151 Gpio::H144_LS_1, // 1 inj 1
152 Gpio::H144_LS_2,
153 Gpio::H144_LS_3,
154 Gpio::H144_LS_4, // 4
155 Gpio::H144_LS_5, // 5 E18 - AC Relay
156 Gpio::H144_LS_6, // 6 A12 Idle Air Control
157 Gpio::H144_LS_7, // 7 intake runner
158 Gpio::H144_LS_8, // 8 Lockout Solenoid
159 Gpio::H144_OUT_IO12, // 9 Radiator Relay Output
160 Gpio::H144_OUT_PWM6, // 10 B21 - EVAP
161 Gpio::H144_OUT_PWM5, // 11 B23 VTC VVT
162 Gpio::H144_OUT_IO3, // 12 E7 Main Relay Control
163 Gpio::H144_OUT_IO7, // 13: E31 Check Engine
164 Gpio::H144_OUT_IO13, // E1 Fuel Relay
165 Gpio::H144_OUT_PWM8, // C11 Aux Low 3
166 Gpio::H144_OUT_IO9, // B18 Alternator Control
167 // low-side with pull-up, faking push-pull
168 Gpio::H144_OUT_IO10, // 17: E26 Tachometer
169 // high side starts here
170 Gpio::H144_OUT_IO6, // B15 VTEC/VTS Output
171 Gpio::H144_IGN_1, // A30 - IGN1
172 Gpio::H144_IGN_2, // A29 - IGN2
173 Gpio::H144_IGN_3, // A28 - IGN3
174 Gpio::H144_IGN_4, // A27 - IGN4
175};

Go to the source code of this file.