auto-sync
This commit is contained in:
parent
558b03ea69
commit
0bcca6b6b8
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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__)
|
||||
|
|
|
@ -39,6 +39,7 @@ public:
|
|||
class NamedOutputPin : public OutputPin {
|
||||
public:
|
||||
NamedOutputPin();
|
||||
NamedOutputPin(const char *name);
|
||||
const char *name;
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue