auto-sync

This commit is contained in:
rusEfi 2017-01-21 18:02:13 -05:00
parent 62e21b1530
commit c604b3875c
2 changed files with 8 additions and 3 deletions

View File

@ -120,12 +120,13 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
boardConfiguration->vvtCamSensorUseRise = true;
engineConfiguration->vvtOffset = -70;
// engineConfiguration->auxPidPins[0] = GPIOE_3; // VVT solenoid control
engineConfiguration->activateAuxPid1 = true; // todo: remove this field?
engineConfiguration->auxPidPins[0] = GPIOE_3; // VVT solenoid control
// /**
// * set_fsio_setting 0 0.55
// */
boardConfiguration->fsio_setting[0] = 0.0;
setFsioExt(0, GPIOE_3, "0 fsio_setting", 400 PASS_ENGINE_PARAMETER);
// setFsioExt(0, GPIOE_3, "0 fsio_setting", 400 PASS_ENGINE_PARAMETER);
@ -199,6 +200,7 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->injector.flow = 265;
boardConfiguration->malfunctionIndicatorPin = GPIOD_9;
// boardConfiguration->malfunctionIndicatorPinMode = OM_INVERTED;
}

View File

@ -57,7 +57,10 @@ void setHardwareUsTimer(int32_t timeUs) {
if (timeUs < 2)
timeUs = 2; // for some reason '1' does not really work
efiAssertVoid(timeUs > 0, "not positive timeUs");
efiAssertVoid(timeUs < 10 * US_PER_SECOND, "setHardwareUsTimer() too large");
if (timeUs >= 10 * US_PER_SECOND) {
firmwareError(OBD_PCM_Processor_Fault, "setHardwareUsTimer() too long: %d", timeUs);
return;
}
if (GPTDEVICE.state == GPT_ONESHOT)
gptStopTimerI(&GPTDEVICE);