This commit is contained in:
parent
5cfaae7fbd
commit
f62c628bef
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "pch.h"
|
||||
#include "fsio_impl.h"
|
||||
#include "custom_engine.h"
|
||||
|
||||
static void setInjectorPins() {
|
||||
engineConfiguration->injectionPins[0] = GPIOG_7;
|
||||
|
@ -56,16 +57,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
static void setLedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
#else
|
||||
engineConfiguration->communicationLedPin = GPIOH_10;
|
||||
#endif /* EFI_COMMUNICATION_PIN */
|
||||
engineConfiguration->runningLedPin = GPIOH_9; // green
|
||||
engineConfiguration->warningLedPin = GPIOH_11; // yellow
|
||||
}
|
||||
|
||||
static void setupVbatt() {
|
||||
// 4.7k high side/4.7k low side = 2.0 ratio divider
|
||||
engineConfiguration->analogInputDividerCoefficient = 2.0f;
|
||||
|
@ -104,7 +95,7 @@ static void setupDefaultSensorInputs() {
|
|||
}
|
||||
|
||||
void setBoardConfigOverrides(void) {
|
||||
setLedPins();
|
||||
setHellen144LedPins();
|
||||
setupVbatt();
|
||||
setSdCardConfigurationOverrides();
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "pch.h"
|
||||
#include "fsio_impl.h"
|
||||
#include "custom_engine.h"
|
||||
|
||||
static void hellenWbo() {
|
||||
engineConfiguration->enableAemXSeries = true;
|
||||
|
@ -50,16 +51,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
static void setLedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
#else
|
||||
engineConfiguration->communicationLedPin = GPIOE_7;
|
||||
#endif /* EFI_COMMUNICATION_PIN */
|
||||
engineConfiguration->runningLedPin = GPIOG_1; // green
|
||||
engineConfiguration->warningLedPin = GPIOE_8; // yellow
|
||||
}
|
||||
|
||||
static void setupVbatt() {
|
||||
// 4.7k high side/4.7k low side = 2.0 ratio divider
|
||||
engineConfiguration->analogInputDividerCoefficient = 2.0f;
|
||||
|
@ -104,7 +95,7 @@ static void setupDefaultSensorInputs() {
|
|||
}
|
||||
|
||||
void setBoardConfigOverrides(void) {
|
||||
setLedPins();
|
||||
setHellen144LedPins();
|
||||
setupVbatt();
|
||||
setSdCardConfigurationOverrides();
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "pch.h"
|
||||
#include "fsio_impl.h"
|
||||
#include "custom_engine.h"
|
||||
|
||||
static void hellenWbo() {
|
||||
engineConfiguration->enableAemXSeries = true;
|
||||
|
@ -50,16 +51,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
static void setLedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
#else
|
||||
engineConfiguration->communicationLedPin = GPIOE_7;
|
||||
#endif /* EFI_COMMUNICATION_PIN */
|
||||
engineConfiguration->runningLedPin = GPIOG_1; // green
|
||||
engineConfiguration->warningLedPin = GPIOE_8; // yellow
|
||||
}
|
||||
|
||||
static void setupVbatt() {
|
||||
// 4.7k high side/4.7k low side = 2.0 ratio divider
|
||||
engineConfiguration->analogInputDividerCoefficient = 2.0f;
|
||||
|
@ -102,7 +93,7 @@ static void setupDefaultSensorInputs() {
|
|||
}
|
||||
|
||||
void setBoardConfigOverrides(void) {
|
||||
setLedPins();
|
||||
setHellen144LedPins();
|
||||
setupVbatt();
|
||||
setSdCardConfigurationOverrides();
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "pch.h"
|
||||
#include "fsio_impl.h"
|
||||
#include "custom_engine.h"
|
||||
|
||||
static void setInjectorPins() {
|
||||
engineConfiguration->injectionPins[0] = GPIOG_7;
|
||||
|
@ -56,16 +57,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
static void setLedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
#else
|
||||
engineConfiguration->communicationLedPin = GPIOH_10;
|
||||
#endif /* EFI_COMMUNICATION_PIN */
|
||||
engineConfiguration->runningLedPin = GPIOH_9; // green
|
||||
engineConfiguration->warningLedPin = GPIOH_11; // yellow
|
||||
}
|
||||
|
||||
static void setupVbatt() {
|
||||
// 4.7k high side/4.7k low side = 2.0 ratio divider
|
||||
engineConfiguration->analogInputDividerCoefficient = 2.0f;
|
||||
|
@ -104,7 +95,7 @@ static void setupDefaultSensorInputs() {
|
|||
}
|
||||
|
||||
void setBoardConfigOverrides(void) {
|
||||
setLedPins();
|
||||
setHellen176LedPins();
|
||||
setupVbatt();
|
||||
setSdCardConfigurationOverrides();
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "pch.h"
|
||||
#include "fsio_impl.h"
|
||||
#include "custom_engine.h"
|
||||
|
||||
static void hellenWbo() {
|
||||
engineConfiguration->enableAemXSeries = true;
|
||||
|
@ -55,16 +56,6 @@ static void setIgnitionPins() {
|
|||
engineConfiguration->ignitionPinMode = OM_DEFAULT;
|
||||
}
|
||||
|
||||
static void setLedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
#else
|
||||
engineConfiguration->communicationLedPin = GPIOH_10;
|
||||
#endif /* EFI_COMMUNICATION_PIN */
|
||||
engineConfiguration->runningLedPin = GPIOH_9; // green
|
||||
engineConfiguration->warningLedPin = GPIOH_11; // yellow
|
||||
}
|
||||
|
||||
static void setupVbatt() {
|
||||
// 4.7k high side/4.7k low side = 2.0 ratio divider
|
||||
engineConfiguration->analogInputDividerCoefficient = 2.0f;
|
||||
|
@ -104,7 +95,7 @@ static void setupDefaultSensorInputs() {
|
|||
}
|
||||
|
||||
void setBoardConfigOverrides(void) {
|
||||
setLedPins();
|
||||
setHellen176LedPins();
|
||||
setupVbatt();
|
||||
setSdCardConfigurationOverrides();
|
||||
|
||||
|
|
|
@ -778,3 +778,23 @@ void setHellenDefaultVrThresholds(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
setLinearCurve(engineConfiguration->vrThreshold[i].values, PACK_PERCENT_BYTE_MULT * 0.6, PACK_PERCENT_BYTE_MULT * 1.2, PACK_PERCENT_BYTE_MULT * 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
void setHellen144LedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
#else
|
||||
engineConfiguration->communicationLedPin = GPIOE_7;
|
||||
#endif /* EFI_COMMUNICATION_PIN */
|
||||
engineConfiguration->runningLedPin = GPIOG_1;
|
||||
engineConfiguration->warningLedPin = GPIOE_8;
|
||||
}
|
||||
|
||||
void setHellen176LedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
#else
|
||||
engineConfiguration->communicationLedPin = GPIOH_10;
|
||||
#endif /* EFI_COMMUNICATION_PIN */
|
||||
engineConfiguration->runningLedPin = GPIOH_9; // green
|
||||
engineConfiguration->warningLedPin = GPIOH_11; // yellow
|
||||
}
|
||||
|
|
|
@ -35,3 +35,6 @@ void setBoschHDEV_5_injectors(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
|||
void setHellen72etb(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setRotary(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setVrThresholdTest(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
void setHellen144LedPins();
|
||||
void setHellen176LedPins();
|
||||
|
|
Loading…
Reference in New Issue