-
Notifications
You must be signed in to change notification settings - Fork 1
/
board_configuration.cpp
53 lines (35 loc) · 1.44 KB
/
board_configuration.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "pch.h"
#include "livedata_board_extra.h"
extern extra_s extraGauges;
Gpio getCommsLedPin() {
return Gpio::Unassigned;
}
Gpio getRunningLedPin() {
return Gpio::Unassigned;
}
Gpio getWarningLedPin() {
return Gpio::Unassigned;
}
// board-specific configuration setup
void setBoardDefaultConfiguration() {
// engineConfiguration->injectionPins[0] = Gpio::F13;
// engineConfiguration->ignitionPins[0] = Gpio::E15;
// engineConfiguration->triggerInputPins[0] = Gpio::B1;
// engineConfiguration->triggerInputPins[1] = Gpio::Unassigned;
// engineConfiguration->map.sensor.hwChannel = EFI_ADC_3;
// engineConfiguration->clt.adcChannel = EFI_ADC_1;
// engineConfiguration->iat.adcChannel = EFI_ADC_2;
config->boardSpecificCalibration1 = 1500;
extraGauges.extraCustomGauge = 2;
//todo fix me https://github.com/rusefi/rusefi/issues/6586 config->boardSpecificCalibration2 = 1500;
//todo fix me https://github.com/rusefi/rusefi/issues/6586 extraGauges.extraCustomGauge2 = 2;
// 5.6k high side/10k low side = 1.56 ratio divider
// engineConfiguration->analogInputDividerCoefficient = 1.56f;
// 6.34k high side/ 1k low side
// engineConfiguration->vbattDividerCoeff = (6.34 + 1) / 1;
// engineConfiguration->adcVcc = 3.3f;
// engineConfiguration->clt.config.bias_resistor = 2490;
// engineConfiguration->iat.config.bias_resistor = 2490;
// Battery sense on PA0
// engineConfiguration->vbattAdcChannel = EFI_ADC_0;
}