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/hellen81/board_configuration.cpp
3 *
4 *
5 * @brief Configuration defaults for the Hellen81 board
6 *
7 * See https://rusefi.com/s/hellen81
8 *
9 * @author andreika <prometheus.pcb@gmail.com>
10 * @author Andrey Belomutskiy, (c) 2012-2021
11 */
12
13#include "pch.h"
14#include "hellen_meta.h"
15#include "board_overrides.h"
16
23
30
34
36 return Gpio::H10;
37}
38
40 return Gpio::H11;
41}
42
44 // trigger inputs
47 // Direct hall-only cam input
49
51
52
54
55 engineConfiguration->afr.hwChannel = EFI_ADC_0; // ADC1_16
56
57 engineConfiguration->clt.adcChannel = H144_IN_CLT; // ADC3_0
58
59 engineConfiguration->iat.adcChannel = H144_IN_IAT; // ADC3_1
60}
61
64
65// Hellen81a uses SPI2 for SD-card
66#if 1
68#else
70#endif
71
73
75}
76
77/**
78 * @brief Board-specific configuration defaults.
79 *
80 * See also setDefaultEngineConfiguration
81 *
82
83 */
87
92
95 engineConfiguration->stepperDcIo[0].directionPin1 = Gpio::C6; // COIL_A1 = OUT_PWM2
96 engineConfiguration->stepperDcIo[0].directionPin2 = Gpio::C7; // COIL_A2 = OUT_PWM3
97 engineConfiguration->stepperDcIo[1].directionPin1 = Gpio::C8; // COIL_B1 = OUT_PWM4
98 engineConfiguration->stepperDcIo[1].directionPin2 = Gpio::C9; // COIL_B2 = OUT_PWM5
99
100 // "required" hardware is done - set some reasonable defaults
102
104 engineConfiguration->firingOrder = FO_1_3_4_2;
105
106 engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; // IM_WASTED_SPARK
107
108 engineConfiguration->injectionMode = IM_SEQUENTIAL; // IM_SIMULTANEOUS; //IM_BATCH;
109}
110
115
Gpio getWarningLedPin()
Gpio getCommsLedPin()
Gpio getRunningLedPin()
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 hellen81_boardConfigOverrides()
static void hellen81_boardDefaultConfiguration()
Board-specific configuration defaults.
void setHellenCan()
void setHellenVbatt()
void setHellenSdCardSpi2()
void setDefaultHellenAtPullUps(float pullup=HELLEN_DEFAULT_AT_PULLUP)
void setHellenSdCardSpi3()
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]