diff --git a/firmware/controllers/map_averaging.cpp b/firmware/controllers/map_averaging.cpp index 8a398dfb16..8d71d6f021 100644 --- a/firmware/controllers/map_averaging.cpp +++ b/firmware/controllers/map_averaging.cpp @@ -40,6 +40,7 @@ #define FAST_MAP_CHART_SKIP_FACTOR 16 static Logging *logger; +static NamedOutputPin mapAveragingPin("map"); /** * Running counter of measurements per revolution @@ -96,6 +97,7 @@ static void startAveraging(void *arg) { if (!wasLocked) chSysUnlockFromIsr() ; + turnPinHigh(&mapAveragingPin); } /** @@ -153,6 +155,7 @@ static void endAveraging(void *arg) { if (!wasLocked) chSysUnlockFromIsr() ; + turnPinLow(&mapAveragingPin); } /** diff --git a/firmware/controllers/system/efiGpio.cpp b/firmware/controllers/system/efiGpio.cpp index 6ab35b050d..5b38eb8a07 100644 --- a/firmware/controllers/system/efiGpio.cpp +++ b/firmware/controllers/system/efiGpio.cpp @@ -22,6 +22,10 @@ NamedOutputPin::NamedOutputPin() : OutputPin() { name = NULL; } +NamedOutputPin::NamedOutputPin(const char *name) : OutputPin() { + this->name = name; +} + OutputPin::OutputPin() { modePtr = &OUTPUT_MODE_DEFAULT; #if EFI_PROD_CODE || defined(__DOXYGEN__) diff --git a/firmware/controllers/system/efiGpio.h b/firmware/controllers/system/efiGpio.h index 371d58355e..2c78608539 100644 --- a/firmware/controllers/system/efiGpio.h +++ b/firmware/controllers/system/efiGpio.h @@ -39,6 +39,7 @@ public: class NamedOutputPin : public OutputPin { public: NamedOutputPin(); + NamedOutputPin(const char *name); const char *name; }; diff --git a/firmware/hw_layer/HIP9011.cpp b/firmware/hw_layer/HIP9011.cpp index 6b23f6fbbd..4c02bf6021 100644 --- a/firmware/hw_layer/HIP9011.cpp +++ b/firmware/hw_layer/HIP9011.cpp @@ -36,7 +36,7 @@ #if EFI_HIP_9011 || defined(__DOXYGEN__) -static NamedOutputPin intHold; +static NamedOutputPin intHold("HIP"); static OutputPin hipCs; extern pin_output_mode_e DEFAULT_OUTPUT; @@ -273,7 +273,6 @@ void initHip9011(Logging *sharedLogger) { spicfg.ssport = getHwPort(boardConfiguration->hip9011CsPin); spicfg.sspad = getHwPin(boardConfiguration->hip9011CsPin); - intHold.name = "HIP"; outputPinRegisterExt2("hip int/hold", &intHold, boardConfiguration->hip9011IntHoldPin, &DEFAULT_OUTPUT); outputPinRegisterExt2("hip CS", &hipCs, boardConfiguration->hip9011CsPin, &DEFAULT_OUTPUT); diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 49ca3e2b13..7410905b97 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -290,5 +290,5 @@ int getRusEfiVersion(void) { return 123; // this is here to make the compiler happy about the unused array if (UNUSED_CCM_SIZE[0] * 0 != 0) return 3211; // this is here to make the compiler happy about the unused array - return 20150410; + return 20150412; }