auto-sync
This commit is contained in:
parent
558b03ea69
commit
0bcca6b6b8
|
@ -40,6 +40,7 @@
|
||||||
#define FAST_MAP_CHART_SKIP_FACTOR 16
|
#define FAST_MAP_CHART_SKIP_FACTOR 16
|
||||||
|
|
||||||
static Logging *logger;
|
static Logging *logger;
|
||||||
|
static NamedOutputPin mapAveragingPin("map");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Running counter of measurements per revolution
|
* Running counter of measurements per revolution
|
||||||
|
@ -96,6 +97,7 @@ static void startAveraging(void *arg) {
|
||||||
if (!wasLocked)
|
if (!wasLocked)
|
||||||
chSysUnlockFromIsr()
|
chSysUnlockFromIsr()
|
||||||
;
|
;
|
||||||
|
turnPinHigh(&mapAveragingPin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -153,6 +155,7 @@ static void endAveraging(void *arg) {
|
||||||
if (!wasLocked)
|
if (!wasLocked)
|
||||||
chSysUnlockFromIsr()
|
chSysUnlockFromIsr()
|
||||||
;
|
;
|
||||||
|
turnPinLow(&mapAveragingPin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,6 +22,10 @@ NamedOutputPin::NamedOutputPin() : OutputPin() {
|
||||||
name = NULL;
|
name = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NamedOutputPin::NamedOutputPin(const char *name) : OutputPin() {
|
||||||
|
this->name = name;
|
||||||
|
}
|
||||||
|
|
||||||
OutputPin::OutputPin() {
|
OutputPin::OutputPin() {
|
||||||
modePtr = &OUTPUT_MODE_DEFAULT;
|
modePtr = &OUTPUT_MODE_DEFAULT;
|
||||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -39,6 +39,7 @@ public:
|
||||||
class NamedOutputPin : public OutputPin {
|
class NamedOutputPin : public OutputPin {
|
||||||
public:
|
public:
|
||||||
NamedOutputPin();
|
NamedOutputPin();
|
||||||
|
NamedOutputPin(const char *name);
|
||||||
const char *name;
|
const char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
#if EFI_HIP_9011 || defined(__DOXYGEN__)
|
#if EFI_HIP_9011 || defined(__DOXYGEN__)
|
||||||
|
|
||||||
static NamedOutputPin intHold;
|
static NamedOutputPin intHold("HIP");
|
||||||
static OutputPin hipCs;
|
static OutputPin hipCs;
|
||||||
|
|
||||||
extern pin_output_mode_e DEFAULT_OUTPUT;
|
extern pin_output_mode_e DEFAULT_OUTPUT;
|
||||||
|
@ -273,7 +273,6 @@ void initHip9011(Logging *sharedLogger) {
|
||||||
spicfg.ssport = getHwPort(boardConfiguration->hip9011CsPin);
|
spicfg.ssport = getHwPort(boardConfiguration->hip9011CsPin);
|
||||||
spicfg.sspad = getHwPin(boardConfiguration->hip9011CsPin);
|
spicfg.sspad = getHwPin(boardConfiguration->hip9011CsPin);
|
||||||
|
|
||||||
intHold.name = "HIP";
|
|
||||||
outputPinRegisterExt2("hip int/hold", &intHold, boardConfiguration->hip9011IntHoldPin, &DEFAULT_OUTPUT);
|
outputPinRegisterExt2("hip int/hold", &intHold, boardConfiguration->hip9011IntHoldPin, &DEFAULT_OUTPUT);
|
||||||
outputPinRegisterExt2("hip CS", &hipCs, boardConfiguration->hip9011CsPin, &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
|
return 123; // this is here to make the compiler happy about the unused array
|
||||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||||
return 3211; // this is here to make the compiler happy about the unused array
|
return 3211; // this is here to make the compiler happy about the unused array
|
||||||
return 20150410;
|
return 20150412;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue