rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
board_configuration.cpp
Go to the documentation of this file.
1/**
2 * @file boards/hellen/hellen-nb1/board_configuration.cpp
3 *
4 *
5 * @brief Configuration defaults for the hellen-nb1 board
6 *
7 * See http://rusefi.com/s/hellenNB1
8 *
9 * @author andreika <prometheus.pcb@gmail.com>
10 * @author Andrey Belomutskiy, (c) 2012-2020
11 */
12
13#include "pch.h"
14#include "hellen_meta.h"
15#include "board_overrides.h"
16
17static void setInjectorPins() {
18 engineConfiguration->injectionPins[0] = Gpio::H144_LS_1;
19 engineConfiguration->injectionPins[1] = Gpio::H144_LS_2;
20 engineConfiguration->injectionPins[2] = Gpio::H144_LS_3;
21 engineConfiguration->injectionPins[3] = Gpio::H144_LS_4;
22
23 engineConfiguration->clutchDownPin = Gpio::C4; // Clutch switch input
25 engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
26 engineConfiguration->malfunctionIndicatorPin = Gpio::H144_OUT_IO8;
27}
28
35
37 // trigger inputs, hall
38 engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_CRANK;
40 engineConfiguration->camInputs[0] = Gpio::H144_IN_CAM;
41
43
46
48
49 engineConfiguration->clt.adcChannel = H144_IN_CLT;
50
51 engineConfiguration->iat.adcChannel = H144_IN_IAT;
52}
53
54
55
65
66/**
67 * @brief Board-specific configuration defaults.
68 *
69 * See also setDefaultEngineConfiguration
70 *
71
72 */
76
78
79 engineConfiguration->boostControlPin = Gpio::H144_LS_6;
80 engineConfiguration->acSwitch = Gpio::H144_ORIGINAL_MCU_IN_D_AUX3;
81 engineConfiguration->acRelayPin = Gpio::H144_OUT_IO6;
86 engineConfiguration->tachOutputPin = Gpio::H144_OUT_PWM1;
87 engineConfiguration->alternatorControlPin = Gpio::H144_OUT_PWM7;
88 engineConfiguration->fan2Pin = Gpio::H144_OUT_IO2;
89
90 // "required" hardware is done - set some reasonable defaults
92
94 engineConfiguration->firingOrder = FO_1_3_4_2;
95
96 engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; // IM_WASTED_SPARK
97
98
99
100 engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
102 engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
103// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
104}
105
110
void setup_custom_board_overrides()
@ Unassigned
std::optional< setup_custom_board_overrides_type > custom_board_ConfigOverrides
std::optional< setup_custom_board_overrides_type > custom_board_DefaultConfiguration
static constexpr engine_configuration_s * engineConfiguration
static void setupDefaultSensorInputs()
static void setIgnitionPins()
static void setInjectorPins()
static void hellen_MiataNB1_boardDefaultConfiguration()
Board-specific configuration defaults.
static void hellen_MiataNB1_boardConfigOverrides()
void setHellenCan()
void setHellenVbatt()
void setHellenSdCardSpi2()
void setDefaultHellenAtPullUps(float pullup=HELLEN_DEFAULT_AT_PULLUP)
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]