custom-board-bundle-sample-.../firmware/config/engines/lada_kalina.cpp

34 lines
698 B
C++
Raw Normal View History

2016-01-21 15:03:40 -08:00
/*
* @file lada_kalina.cpp
*
* set_engine_type 39
*
* @date Jan 21, 2016
* @author Andrey Belomutskiy, (c) 2012-2016
*/
#include "lada_kalina.h"
2016-03-21 13:01:49 -07:00
#include "custom_engine.h"
#include "fsio_impl.h"
2016-01-21 15:03:40 -08:00
EXTERN_ENGINE;
void setLadaKalina(DECLARE_ENGINE_PARAMETER_F) {
2016-03-21 13:01:49 -07:00
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_F);
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
2016-03-21 14:02:08 -07:00
engineConfiguration->trigger.type = TT_60_2_VW;
2016-03-21 13:01:49 -07:00
// starter relay solenoid
/**
* to test
* set_fsio_setting 0 5000
*/
engineConfiguration->bc.fsio_setting[0] = 500;
// set_fsio_expression 1 "rpm 0 fsio_setting <"
setFsioExt(0, GPIOE_3, "rpm 0 fsio_setting <", 150 PASS_ENGINE_PARAMETER);
2016-01-21 15:03:40 -08:00
}