73 lines
1.7 KiB
C++
73 lines
1.7 KiB
C++
#include "pch.h"
|
|
|
|
Gpio getCommsLedPin() {
|
|
return Gpio::D15;
|
|
}
|
|
|
|
Gpio getRunningLedPin() {
|
|
return Gpio::Unassigned;
|
|
}
|
|
|
|
Gpio getWarningLedPin() {
|
|
return Gpio::Unassigned;
|
|
}
|
|
|
|
void setBoardDefaultConfiguration() {
|
|
engineConfiguration->vbattDividerCoeff = 10.2f;
|
|
engineConfiguration->vbattAdcChannel = EFI_ADC_11;
|
|
}
|
|
|
|
static Gpio OUTPUTS[] = {
|
|
Gpio::D11, //
|
|
Gpio::D12, //
|
|
Gpio::D13, //
|
|
Gpio::D14, //
|
|
Gpio::E11, //
|
|
Gpio::E12,
|
|
};
|
|
|
|
int getBoardMetaOutputsCount() {
|
|
return efi::size(OUTPUTS);
|
|
}
|
|
|
|
Gpio* getBoardMetaOutputs() {
|
|
return OUTPUTS;
|
|
}
|
|
|
|
void setCustomVbatt() {
|
|
// set vbatt_divider 5.835
|
|
// 33k / 6.8k
|
|
engineConfiguration->vbattDividerCoeff = 10.2; // 5.835
|
|
|
|
engineConfiguration->vbattAdcChannel = EFI_ADC_11;
|
|
|
|
}
|
|
/*
|
|
static void setInjectorPins() {
|
|
engineConfiguration->injectionPins[0] = Gpio::E0;
|
|
engineConfiguration->injectionPins[1] = Gpio::E6;
|
|
engineConfiguration->injectionPins[2] = Gpio::D9;
|
|
engineConfiguration->injectionPins[3] = Gpio::E3;
|
|
}
|
|
|
|
static void setIgnitionPins() {
|
|
engineConfiguration->ignitionPins[0] = Gpio::A8;
|
|
engineConfiguration->ignitionPins[1] = Gpio::C9;
|
|
engineConfiguration->ignitionPins[2] = Gpio::A10;
|
|
engineConfiguration->ignitionPins[3] = Gpio::C8;
|
|
}
|
|
|
|
void setBoardDefaultConfiguration() {
|
|
engineConfiguration->map.sensor.hwChannel = EFI_ADC_0;
|
|
engineConfiguration->clt.adcChannel = EFI_ADC_1;
|
|
engineConfiguration->iat.adcChannel = EFI_ADC_13;
|
|
engineConfiguration->afr.hwChannel = EFI_ADC_14;
|
|
|
|
engineConfiguration->vbattAdcChannel = EFI_ADC_12;
|
|
engineConfiguration->analogInputDividerCoefficient = 10.2f;
|
|
|
|
engineConfiguration->triggerInputPins[0] = Gpio::B1;
|
|
engineConfiguration->triggerInputPins[1] = Gpio::A6;
|
|
}
|
|
*/
|