rusefi/firmware/config/engines/zil130.cpp

70 lines
2.0 KiB
C++
Raw Normal View History

2016-05-04 20:02:32 -07:00
/*
* @file zil130.cpp
*
* http://rusefi.com/forum/viewtopic.php?f=15&t=644
*
2017-01-06 07:04:41 -08:00
* set engine_type 42
2016-06-05 18:01:39 -07:00
*
2016-05-04 20:02:32 -07:00
* @date May 4, 2016
2018-01-20 17:42:19 -08:00
* @author Andrey Belomutskiy, (c) 2012-2018
2016-05-04 20:02:32 -07:00
*/
#include "engine_template.h"
#include "custom_engine.h"
EXTERN_ENGINE;
2017-05-15 20:33:22 -07:00
void setZil130(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
2016-06-05 18:01:39 -07:00
engineConfiguration->specs.cylindersCount = 8;
2016-06-06 06:01:48 -07:00
engineConfiguration->specs.displacement = 5.9;
2016-06-05 18:01:39 -07:00
engineConfiguration->specs.firingOrder = FO_1_5_4_2_6_3_7_8;
engineConfiguration->injectionMode = IM_BATCH;
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
engineConfiguration->trigger.customTotalToothCount = 30;
engineConfiguration->trigger.customSkippedToothCount = 1;
CONFIGB(malfunctionIndicatorPin) = GPIO_UNASSIGNED;
2016-06-06 06:01:48 -07:00
// engineConfiguration->twoWireBatchInjection = true;
CONFIGB(injectionPinMode) = OM_INVERTED;
CONFIGB(injectionPins)[0] = GPIOB_8; // #1
CONFIGB(injectionPins)[1] = GPIOE_2; // #2
CONFIGB(injectionPins)[2] = GPIOE_3; // #3
CONFIGB(injectionPins)[3] = GPIOE_4; // #4
CONFIGB(injectionPins)[4] = GPIO_UNASSIGNED; // #5
CONFIGB(injectionPins)[5] = GPIO_UNASSIGNED; // #6
CONFIGB(injectionPins)[6] = GPIO_UNASSIGNED;
CONFIGB(injectionPins)[5] = GPIO_UNASSIGNED;
2016-06-05 18:01:39 -07:00
CONFIGB(ignitionPins)[0] = GPIOB_5; // #1
CONFIGB(ignitionPins)[1] = GPIOB_6; // #2
CONFIGB(ignitionPins)[2] = GPIO_UNASSIGNED; // #3
CONFIGB(ignitionPins)[3] = GPIOB_7; // #4
CONFIGB(ignitionPins)[4] = GPIOC_7; // #5
2016-06-05 18:01:39 -07:00
// fuel pump
CONFIGB(fuelPumpPin) = GPIOD_4;
2016-06-05 18:01:39 -07:00
// idle
CONFIGB(idle).solenoidPin = GPIOC_14;
CONFIGB(idle).solenoidPinMode = OM_INVERTED;
CONFIGB(idle).solenoidFrequency = 300;
CONFIGB(manIdlePosition) = 50; // set_idle_pwm 50
2016-06-05 18:01:39 -07:00
// disable sd_card
CONFIGB(sdCardCsPin) = GPIO_UNASSIGNED;
CONFIGB(is_enabled_spi_2) = false;
CONFIGB(is_enabled_spi_3) = false;
CONFIGB(max31855spiDevice) = SPI_NONE;
2016-06-05 18:01:39 -07:00
CONFIGB(fanPin) = GPIO_UNASSIGNED;
2016-06-05 18:01:39 -07:00
2016-05-04 20:02:32 -07:00
}