rusefi 2021-09-29 11:51:25 -04:00
parent f62c628bef
commit 1edb9f279d
6 changed files with 5 additions and 38 deletions

View File

@ -14,10 +14,6 @@ ifeq ($(LED_CRITICAL_ERROR_BRAIN_PIN),)
LED_CRITICAL_ERROR_BRAIN_PIN = -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOH_8
endif
ifeq ($(LED_COMMUNICATION_BRAIN_PIN),)
LED_COMMUNICATION_BRAIN_PIN = -DEFI_COMMUNICATION_PIN=GPIOH_10
endif
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
DDEFS += -DLED_ERROR_BRAIN_PIN_MODE=INVERTED_OUTPUT

View File

@ -56,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;
@ -113,7 +103,7 @@ static void setupDefaultSensorInputs() {
}
void setBoardConfigOverrides(void) {
setLedPins();
setHellen176LedPins();
setupVbatt();
setSdCardConfigurationOverrides();

View File

@ -9,14 +9,11 @@ ifeq ($(DEFAULT_ENGINE_TYPE),)
DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=HELLEN_128_MERCEDES_4_CYL
endif
# 176 package MCU
ifeq ($(LED_CRITICAL_ERROR_BRAIN_PIN),)
LED_CRITICAL_ERROR_BRAIN_PIN = -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOH_8
endif
ifeq ($(LED_COMMUNICATION_BRAIN_PIN),)
LED_COMMUNICATION_BRAIN_PIN = -DEFI_COMMUNICATION_PIN=GPIOH_10
endif
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
DDEFS += -DLED_ERROR_BRAIN_PIN_MODE=INVERTED_OUTPUT

View File

@ -54,16 +54,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 +94,7 @@ static void setupDefaultSensorInputs() {
}
void setBoardConfigOverrides(void) {
setLedPins();
setHellen176LedPins();
setupVbatt();
setSdCardConfigurationOverrides();

View File

@ -9,14 +9,11 @@ ifeq ($(DEFAULT_ENGINE_TYPE),)
DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=HELLEN_NA6
endif
# 176 package MCU
ifeq ($(LED_CRITICAL_ERROR_BRAIN_PIN),)
LED_CRITICAL_ERROR_BRAIN_PIN = -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOH_8
endif
ifeq ($(LED_COMMUNICATION_BRAIN_PIN),)
LED_COMMUNICATION_BRAIN_PIN = -DEFI_COMMUNICATION_PIN=GPIOH_10
endif
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
DDEFS += -DLED_ERROR_BRAIN_PIN_MODE=INVERTED_OUTPUT

View File

@ -9,14 +9,11 @@ ifeq ($(DEFAULT_ENGINE_TYPE),)
DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=HELLEN_NB2
endif
# 176 package MCU
ifeq ($(LED_CRITICAL_ERROR_BRAIN_PIN),)
LED_CRITICAL_ERROR_BRAIN_PIN = -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOH_8
endif
ifeq ($(LED_COMMUNICATION_BRAIN_PIN),)
LED_COMMUNICATION_BRAIN_PIN = -DEFI_COMMUNICATION_PIN=GPIOH_10
endif
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
DDEFS += -DLED_ERROR_BRAIN_PIN_MODE=INVERTED_OUTPUT