2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file nissan_primera.cpp
|
|
|
|
*
|
2019-11-23 12:53:22 -08:00
|
|
|
* NISSAN_PRIMERA
|
|
|
|
* set engine_type 5
|
2015-07-10 06:01:56 -07:00
|
|
|
*
|
|
|
|
* @date Oct 14, 2013
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2018-09-16 19:25:17 -07:00
|
|
|
#include "global.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#include "nissan_primera.h"
|
|
|
|
|
2019-11-23 12:53:22 -08:00
|
|
|
EXTERN_CONFIG;
|
|
|
|
|
|
|
|
void setNissanPrimeraEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|
|
|
setDefaultFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
|
|
|
|
2017-03-18 17:59:52 -07:00
|
|
|
engineConfiguration->trigger.type = TT_NISSAN_SR20VE;
|
2019-11-23 12:53:22 -08:00
|
|
|
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->ignitionPins[0] = GPIOD_7;
|
|
|
|
engineConfiguration->ignitionPins[1] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->ignitionPins[2] = GPIOD_6;
|
2019-11-23 19:55:21 -08:00
|
|
|
|
|
|
|
|
|
|
|
engineConfiguration->auxValves[0] = GPIOE_14;
|
|
|
|
engineConfiguration->auxValves[1] = GPIOE_12;
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|
|
|
|
|
2019-11-23 12:53:22 -08:00
|
|
|
void setNissanPrimeraEngineConfiguration_360(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
2017-04-02 14:59:01 -07:00
|
|
|
engineConfiguration->trigger.type = TT_NISSAN_SR20VE_360;
|
|
|
|
}
|