2023-12-04 06:47:45 -08:00
|
|
|
#include "pch.h"
|
|
|
|
|
|
|
|
Gpio getCommsLedPin() {
|
2023-05-23 11:17:45 -07:00
|
|
|
return Gpio::D15;
|
2023-12-04 06:47:45 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
Gpio getRunningLedPin() {
|
|
|
|
return Gpio::Unassigned;
|
|
|
|
}
|
|
|
|
|
|
|
|
Gpio getWarningLedPin() {
|
|
|
|
return Gpio::Unassigned;
|
2024-04-16 13:44:45 -07:00
|
|
|
}
|
2024-04-21 10:28:44 -07:00
|
|
|
/*
|
2024-04-21 01:15:07 -07:00
|
|
|
static void setInjectorPins() {
|
|
|
|
engineConfiguration->injectionPins[0] = Gpio::E0;
|
|
|
|
engineConfiguration->injectionPins[1] = Gpio::E6;
|
|
|
|
engineConfiguration->injectionPins[2] = Gpio::D9;
|
|
|
|
engineConfiguration->injectionPins[3] = Gpio::E3;
|
|
|
|
}
|
2024-04-21 10:28:44 -07:00
|
|
|
|
2024-04-21 01:15:07 -07:00
|
|
|
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;
|
|
|
|
}
|
2024-04-21 01:21:01 -07:00
|
|
|
*/
|